home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / OCEAuthDir.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  173.0 KB  |  4,672 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        OCEAuthDir.p
  3.  
  4.      Contains:    Apple Open Collaboration Environment Authentication Interfaces.
  5.  
  6.      Version:    Technology:    AOCE Toolbox 1.02
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT OCEAuthDir;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __OCEAUTHDIR__}
  28. {$SETC __OCEAUTHDIR__ := 1}
  29.  
  30. {$I+}
  31. {$SETC OCEAuthDirIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __APPLETALK__}
  35. {$I AppleTalk.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __FILES__}
  38. {$I Files.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __OSUTILS__}
  41. {$I OSUtils.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __TYPES__}
  44. {$I Types.p}
  45. {$ENDC}
  46.  
  47. {$IFC UNDEFINED __OCE__}
  48. {$I OCE.p}
  49. {$ENDC}
  50.  
  51.  
  52. {$PUSH}
  53. {$ALIGN MAC68K}
  54. {$LibExport+}
  55.  
  56. {***************************************************************************}
  57.  
  58. CONST
  59.     kRC4KeySizeInBytes            = 8;                            {  size of an RC4 key  }
  60.     kRefNumUnknown                = 0;
  61.  
  62.     kEnumDistinguishedNameBit    = 0;
  63.     kEnumAliasBit                = 1;
  64.     kEnumPseudonymBit            = 2;
  65.     kEnumDNodeBit                = 3;
  66.     kEnumInvisibleBit            = 4;
  67.  
  68. { Values of DirEnumChoices }
  69.     kEnumDistinguishedNameMask    = $00000001;
  70.     kEnumAliasMask                = $00000002;
  71.     kEnumPseudonymMask            = $00000004;
  72.     kEnumDNodeMask                = $00000008;
  73.     kEnumInvisibleMask            = $00000010;
  74.     kEnumAllMask                = $0000001F;
  75.  
  76.  
  77. TYPE
  78.     DirEnumChoices                        = LONGINT;
  79. { Values of DirSortOption }
  80.  
  81. CONST
  82.     kSortByName                    = 0;
  83.     kSortByType                    = 1;
  84.  
  85.  
  86. { Values of DirSortDirection }
  87.     kSortForwards                = 0;
  88.     kSortBackwards                = 1;
  89.  
  90. { Values of DirMatchWith }
  91.     kMatchAll                    = 0;
  92.     kExactMatch                    = 1;
  93.     kBeginsWith                    = 2;
  94.     kEndingWith                    = 3;
  95.     kContaining                    = 4;
  96.  
  97.  
  98. TYPE
  99.     DirMatchWith                        = SInt8;
  100.  
  101. CONST
  102.     kCurrentOCESortVersion        = 1;
  103.  
  104. {  Access controls are implemented on three levels:
  105.  *      DNode, Record, and Attribute Type levels
  106.  *  Some access control bits apply to the container itself, and some apply to its contents.
  107.  *
  108.  *  The Catalog Toolbox supports six functions.  These calls are:
  109.  *  DSGetDNodeAccessControl : to get Access Controls at the DNode level
  110.  *    DSGetRecordAccessControl  : to get Access Controls at the record level
  111.  *  DSGetAttributeAccessControl : to get Access Privileges at the attribute type level
  112.  * 
  113.  *  The GetXXXAccessControl calls will return access control masks for various categories
  114.  *  of users.  Please refer to the access control document for a description of the
  115.  *  categories of users.  In general these are:
  116.  *      ThisRecordOwner         - means the identity of the record itself
  117.  *      Friends                  - means any one of the assigned friends for the record
  118.  *      AuthenticatedInDNode     - means any valid user that is an authenticated entity
  119.  *          in the DNode in which this record is located
  120.  *      AuthenticatedInDirectory - means any valid authenticated catalog user
  121.  *      Guest                      - means an unauthenticated user.
  122.  *  Bit masks for various permitted access controls are defined below.
  123.  *
  124.  *  GetXXXAccessControl calls will return access control masks for various categories of
  125.  *  users for this record. In addition they also return the level of access controls
  126.  *  that the user (who is making the GetXXXAccessControl call) has for the DNode,
  127.  *  record, or attribute type.
  128.  *
  129.  *  For records, the access control granted will be minimum of the DNode access
  130.  *  control and record access control masks.  For example, to add an attribute type to a
  131.  *  record, a user must have access control kCreateAttributeTypes at the record and
  132.  *  DNode levels.  Similarly, at the attribute type level, access controls will be the
  133.  *  minimum of the DNode, record, and attribute type access controls.
  134.  *
  135.  *  
  136.  }
  137. { access privileges bit numbers }
  138.     kSeeBit                        = 0;
  139.     kAddBit                        = 1;
  140.     kDeleteBit                    = 2;
  141.     kChangeBit                    = 3;
  142.     kRenameBit                    = 4;
  143.     kChangePrivsBit                = 5;
  144.     kSeeFoldersBit                = 6;
  145.  
  146. { Values of AccessMask }
  147.     kSeeMask                    = $00000001;
  148.     kAddMask                    = $00000002;
  149.     kDeleteMask                    = $00000004;
  150.     kChangeMask                    = $00000008;
  151.     kRenameMask                    = $00000010;
  152.     kChangePrivsMask            = $00000020;
  153.     kSeeFoldersMask                = $00000040;
  154.  
  155.     kAllPrivs                    = $0000007F;
  156.     kNoPrivs                    = 0;
  157.  
  158. {
  159.  
  160. kSupportsDNodeNumberBit:
  161. If this bit is set, a DNode can be referenced using DNodeNumbers. 
  162. RecordLocationInfo can be specified using DNodeNumber and PathName component can be nil. 
  163. If this bit is not set, a DNode can be referenced only by PathName to the DNode. In the 
  164. later case DNodeNumber component inside record location info must be set to zero.
  165.  
  166. kSupportsRecordCreationIDBit:
  167. If this bit is set, a record can be referenced by specifying CreationID 
  168. in most catalog manager calls. If this bit is not set recordName and recordType are 
  169. required in the recordID specification for all catalog manager calls.
  170.  
  171. kSupportsAttributeCreationIDBit:
  172. If this bit is set, an attribute value can be obtained by specifying it's 
  173. CreationID in Lookup call staring point and also can be used in operations 
  174. like DeleteAttributeValue and ChangeAttributeValue an Attribute can be 
  175. specified by AttributeType and CreationID.
  176.  
  177. *************************************************************************
  178. Implicit assumption with creationID's and dNodeNumbers are, when supported
  179. they are persistent and will preserved across boots and life of the system.
  180. *************************************************************************
  181.  
  182. Following three bits are for determining the sort order in enumeration.
  183. kSupportsMatchAllBit:
  184. If this bit is set, enumeration of all the records is supported
  185.  
  186. kSupportsBeginsWithBit:
  187. If this bit is set, enumeration of records matching prefix (e.g. Begin with abc)
  188. is supported
  189.  
  190. kSupportsExactMatchBit:
  191. If this bit is set, existence of a record matching exact matchNameString and recordType
  192. is supported.
  193.  
  194. kSupportsEndsWithBit:
  195. If this bit is set, enumeration of records matching suffix (e.g. end with abc)
  196. is supported.
  197.  
  198. kSupportsContainsBit:
  199. If this bit is set, enumeration of records containing a matchNameString (e.g. containing abc)
  200. is supported
  201.  
  202.  
  203. Implicit assumption in all these is, a record type can be specified either as one of the above or
  204. a type list(more then one) to match exact type.
  205. The Following four bits will indicate sort ordering in enumeration.
  206.  
  207. kSupportsOrderedEnumerationBit:
  208. If this bit is set, Enumerated records or in some order possibly in name order.
  209.  
  210. kCanSupportNameOrderBit:
  211. If this is set, catalog will support sortbyName option in Enumerate.
  212.  
  213. kCanSupportTypeOrderBit:
  214. If this bit is set, catalog will support sortbyType option in enumearte.
  215.  
  216. kSupportSortBackwardsBit:
  217. If this bit is set, catalog supports backward sorting.
  218.  
  219. kSupportIndexRatioBit:
  220. If this bit is set, it indicates that enumeration will return approximate position
  221. of a record (percentile) among all records.
  222.  
  223. kSupportsEnumerationContinueBit:
  224. If this bit is set, catalog supports enumeration continue.
  225.  
  226. kSupportsLookupContinueBit:
  227. If this bit is set, catalog supports lookup continue.
  228.  
  229. kSupportsEnumerateAttributeTypeContinueBit:
  230. If this bit is set, catalog supports EnumerateAttributeType continue.
  231.  
  232. kSupportsEnumeratePseudonymContinueBit:
  233. If this bit is set, catalog supports EnumeratePseudonym continue.
  234.  
  235. kSupportsAliasesBit:
  236. If this bit is set, catalog supports create/delte/enumerate 
  237. of Alias Records.
  238.  
  239. kSupportPseudonymBit: 
  240. If this bit is set, catalog supports create/delte/enumerate of 
  241. pseudonyms for a record.
  242.  
  243. kSupportsPartialPathNameBit:
  244. If this bit is set, catalog nodes can be specified using DNodeNumber of a 
  245. intermediate DNode and a partial name starting from that DNode to the intended 
  246. DNode.
  247.  
  248. kSupportsAuthenticationBit:
  249. If this bit is set, catalog supports authentication manager calls.
  250.  
  251. kSupportsProxiesBit:
  252. If this bit is set, catalog supports proxy related calls in authentication manager. 
  253.  
  254. kSupportsFindRecordBit:
  255. If this bit is set, catalog supports find record call.
  256.  
  257. Bits and corresponding masks are as defined below.
  258. }
  259.     kSupportsDNodeNumberBit        = 0;
  260.     kSupportsRecordCreationIDBit = 1;
  261.     kSupportsAttributeCreationIDBit = 2;
  262.     kSupportsMatchAllBit        = 3;
  263.     kSupportsBeginsWithBit        = 4;
  264.     kSupportsExactMatchBit        = 5;
  265.     kSupportsEndsWithBit        = 6;
  266.     kSupportsContainsBit        = 7;
  267.     kSupportsOrderedEnumerationBit = 8;
  268.     kCanSupportNameOrderBit        = 9;
  269.     kCanSupportTypeOrderBit        = 10;
  270.     kSupportSortBackwardsBit    = 11;
  271.     kSupportIndexRatioBit        = 12;
  272.     kSupportsEnumerationContinueBit = 13;
  273.     kSupportsLookupContinueBit    = 14;
  274.     kSupportsEnumerateAttributeTypeContinueBit = 15;
  275.     kSupportsEnumeratePseudonymContinueBit = 16;
  276.     kSupportsAliasesBit            = 17;
  277.     kSupportsPseudonymsBit        = 18;
  278.     kSupportsPartialPathNamesBit = 19;
  279.     kSupportsAuthenticationBit    = 20;
  280.     kSupportsProxiesBit            = 21;
  281.     kSupportsFindRecordBit        = 22;
  282.  
  283. { values of DirGestalt }
  284.     kSupportsDNodeNumberMask    = $00000001;
  285.     kSupportsRecordCreationIDMask = $00000002;
  286.     kSupportsAttributeCreationIDMask = $00000004;
  287.     kSupportsMatchAllMask        = $00000008;
  288.     kSupportsBeginsWithMask        = $00000010;
  289.     kSupportsExactMatchMask        = $00000020;
  290.     kSupportsEndsWithMask        = $00000040;
  291.     kSupportsContainsMask        = $00000080;
  292.     kSupportsOrderedEnumerationMask = $00000100;
  293.     kCanSupportNameOrderMask    = $00000200;
  294.     kCanSupportTypeOrderMask    = $00000400;
  295.     kSupportSortBackwardsMask    = $00000800;
  296.     kSupportIndexRatioMask        = $00001000;
  297.     kSupportsEnumerationContinueMask = $00002000;
  298.     kSupportsLookupContinueMask    = $00004000;
  299.     kSupportsEnumerateAttributeTypeContinueMask = $00008000;
  300.     kSupportsEnumeratePseudonymContinueMask = $00010000;
  301.     kSupportsAliasesMask        = $00020000;
  302.     kSupportsPseudonymsMask        = $00040000;
  303.     kSupportsPartialPathNamesMask = $00080000;
  304.     kSupportsAuthenticationMask    = $00100000;
  305.     kSupportsProxiesMask        = $00200000;
  306.     kSupportsFindRecordMask        = $00400000;
  307.  
  308.  
  309. { Values of AuthLocalIdentityOp }
  310.     kAuthLockLocalIdentityOp    = 1;
  311.     kAuthUnlockLocalIdentityOp    = 2;
  312.     kAuthLocalIdentityNameChangeOp = 3;
  313.  
  314. { Values of AuthLocalIdentityLockAction }
  315.     kAuthLockPending            = 1;
  316.     kAuthLockWillBeDone            = 2;
  317.  
  318.  
  319. { Values of AuthNotifications }
  320.     kNotifyLockBit                = 0;
  321.     kNotifyUnlockBit            = 1;
  322.     kNotifyNameChangeBit        = 2;
  323.  
  324.     kNotifyLockMask                = $00000001;
  325.     kNotifyUnlockMask            = $00000002;
  326.     kNotifyNameChangeMask        = $00000004;
  327.  
  328.     kPersonalDirectoryFileCreator = 'kl03';
  329.     kPersonalDirectoryFileType    = 'pabt';
  330.     kBusinessCardFileType        = 'bust';
  331.     kDirectoryFileType            = 'dirt';
  332.     kDNodeFileType                = 'dnod';
  333.     kDirsRootFileType            = 'drtt';
  334.     kRecordFileType                = 'rcrd';
  335.  
  336.  
  337. TYPE
  338.     DirSortOption                        = INTEGER;
  339.     DirSortDirection                    = INTEGER;
  340.     AccessMask                            = LONGINT;
  341.     DirGestalt                            = LONGINT;
  342.     AuthLocalIdentityOp                    = LONGINT;
  343.     AuthLocalIdentityLockAction            = LONGINT;
  344.     AuthNotifications                    = LONGINT;
  345.     DNodeIDPtr = ^DNodeID;
  346.     DNodeID = RECORD
  347.         dNodeNumber:            DNodeNum;                                {  dNodenumber   }
  348.         reserved1:                LONGINT;
  349.         name:                    RStringPtr;
  350.         reserved2:                LONGINT;
  351.     END;
  352.  
  353.     DirEnumSpecPtr = ^DirEnumSpec;
  354.     DirEnumSpec = RECORD
  355.         enumFlag:                DirEnumChoices;
  356.         indexRatio:                INTEGER;                                {  Approx Record Position between 1 and 100 If supported, 0 If not supported  }
  357.         CASE INTEGER OF
  358.         0: (
  359.             recordIdentifier:    LocalRecordID;
  360.             );
  361.         1: (
  362.             dNodeIdentifier:    DNodeID;
  363.             );
  364.     END;
  365.  
  366.     DirMetaInfoPtr = ^DirMetaInfo;
  367.     DirMetaInfo = RECORD
  368.         info:                    ARRAY [0..3] OF LONGINT;
  369.     END;
  370.  
  371.     SLRVPtr = ^SLRV;
  372.     SLRV = RECORD
  373.         script:                    ScriptCode;                                {    Script code in which entries are sorted  }
  374.         language:                INTEGER;                                {    Language code in which entries are sorted  }
  375.         regionCode:                INTEGER;                                {    Region code in which entries are sorted  }
  376.         version:                INTEGER;                                {   version of oce sorting software  }
  377.     END;
  378.  
  379. { Catalog types and operations }
  380. { unique identifier for an identity }
  381.     AuthIdentity                        = LONGINT;
  382. { Umbrella LocalIdentity }
  383.     LocalIdentity                        = AuthIdentity;
  384. { A DES key is 8 bytes of data }
  385.     DESKeyPtr = ^DESKey;
  386.     DESKey = RECORD
  387.         a:                        LONGINT;
  388.         b:                        LONGINT;
  389.     END;
  390.  
  391.     RC4Key                                = ARRAY [0..7] OF SignedByte;
  392.     AuthKeyType                            = LONGINT;
  393. { key type followed by its data }
  394.     AuthKeyPtr = ^AuthKey;
  395.     AuthKey = RECORD
  396.         keyType:                AuthKeyType;
  397.         CASE INTEGER OF
  398.         0: (
  399.             des:                DESKey;
  400.             );
  401.         1: (
  402.             rc4:                RC4Key;
  403.             );
  404.     END;
  405.  
  406.     AuthParamBlockPtr = ^AuthParamBlock;
  407. { Fix parameter passing convention (#1274062) ggs, 8-7-95 }
  408.     AuthIOCompletionProcPtr = Register68kProcPtr;  { PROCEDURE AuthIOCompletion(paramBlock: AuthParamBlockPtr); }
  409.  
  410.     AuthIOCompletionUPP = UniversalProcPtr;
  411. {****************************************************************************
  412.  
  413.  
  414.         Authentication Manager operations 
  415.  
  416. ****************************************************************************}
  417. {
  418. kAuthResolveCreationID:
  419. userRecord will contain the user information whose creationID has to be
  420. returned. A client must make this call when he does not know the creaitionID.
  421. The creationID must be set to nil before making the call. The server will attempt
  422. to match the recordid's in the data base which match the user name and
  423. type in the record.  Depending on number of matchings, following
  424. results will be returned.
  425. Exactly One Match : CreationID in RecordID and also in buffer (if buffer is given)
  426. totalMatches = actualMatches = 1.
  427. > 1 Match:
  428.     Buffer is Large Enough:
  429.     totalMatches = actualMatches
  430.     Buffer will contain all the CIDs, kOCEAmbiguousMatches error.
  431. > 1 Match:
  432.     Buffer is not Large Enough:
  433.     totalMatches > actualMatches
  434.     Buffer will contain all the CIDs (equal to actualMatches), daMoreDataError error.
  435. 0 Matches:
  436.  kOCENoSuchRecord error
  437. }
  438.     AuthResolveCreationIDPBPtr = ^AuthResolveCreationIDPB;
  439.     AuthResolveCreationIDPB = RECORD
  440.         qLink:                    Ptr;
  441.         reserved1:                LONGINT;
  442.         reserved2:                LONGINT;
  443.         ioCompletion:            AuthIOCompletionUPP;
  444.         ioResult:                OSErr;
  445.         saveA5:                    LONGINT;
  446.         reqCode:                INTEGER;
  447.         reserved:                ARRAY [0..1] OF LONGINT;
  448.         serverHint:                AddrBlock;
  449.         dsRefNum:                INTEGER;
  450.         callID:                    LONGINT;
  451.         identity:                AuthIdentity;
  452.         gReserved1:                LONGINT;
  453.         gReserved2:                LONGINT;
  454.         gReserved3:                LONGINT;
  455.         clientData:                LONGINT;
  456.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  457.         bufferLength:            LONGINT;                                {   --> Buffer Size to hold duplicate Info  }
  458.         buffer:                    Ptr;                                    {   --> Buffer  to hold duplicate Info  }
  459.         totalMatches:            LONGINT;                                {  <--  Total Number of matching names found  }
  460.         actualMatches:            LONGINT;                                {  <--  Number of matches returned in the buffer  }
  461.     END;
  462.  
  463. {
  464. kAuthBindSpecificIdentity:
  465. userRecord will contain the user information whose identity has to be
  466. verified. userKey will contain the userKey. An Identity is returned which
  467. binds the key and the userRecord. The identity returned can be used in the 'identity'
  468. field in the header portion (AuthParamHeader) for authenticating the Catalog and
  469. Authentication manager calls.
  470. }
  471.     AuthBindSpecificIdentityPBPtr = ^AuthBindSpecificIdentityPB;
  472.     AuthBindSpecificIdentityPB = RECORD
  473.         qLink:                    Ptr;
  474.         reserved1:                LONGINT;
  475.         reserved2:                LONGINT;
  476.         ioCompletion:            AuthIOCompletionUPP;
  477.         ioResult:                OSErr;
  478.         saveA5:                    LONGINT;
  479.         reqCode:                INTEGER;
  480.         reserved:                ARRAY [0..1] OF LONGINT;
  481.         serverHint:                AddrBlock;
  482.         dsRefNum:                INTEGER;
  483.         callID:                    LONGINT;
  484.         identity:                AuthIdentity;
  485.         gReserved1:                LONGINT;
  486.         gReserved2:                LONGINT;
  487.         gReserved3:                LONGINT;
  488.         clientData:                LONGINT;
  489.         userIdentity:            AuthIdentity;                            {  <--  binding identity  }
  490.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  491.         userKey:                AuthKeyPtr;                                {   --> OCE Key for the user  }
  492.     END;
  493.  
  494. {
  495. kAuthUnbindSpecificIdentity:
  496. This call will unbind the userRecord and key which were bind earlier.
  497. }
  498.     AuthUnbindSpecificIdentityPBPtr = ^AuthUnbindSpecificIdentityPB;
  499.     AuthUnbindSpecificIdentityPB = RECORD
  500.         qLink:                    Ptr;
  501.         reserved1:                LONGINT;
  502.         reserved2:                LONGINT;
  503.         ioCompletion:            AuthIOCompletionUPP;
  504.         ioResult:                OSErr;
  505.         saveA5:                    LONGINT;
  506.         reqCode:                INTEGER;
  507.         reserved:                ARRAY [0..1] OF LONGINT;
  508.         serverHint:                AddrBlock;
  509.         dsRefNum:                INTEGER;
  510.         callID:                    LONGINT;
  511.         identity:                AuthIdentity;
  512.         gReserved1:                LONGINT;
  513.         gReserved2:                LONGINT;
  514.         gReserved3:                LONGINT;
  515.         clientData:                LONGINT;
  516.         userIdentity:            AuthIdentity;                            {   --> identity to be deleted  }
  517.     END;
  518.  
  519.  
  520. {
  521. kAuthGetSpecificIdentityInfo:
  522. This call will return the userRecord for the given identity. Note: key is not
  523. returned because this would compromise security.
  524. }
  525.     AuthGetSpecificIdentityInfoPBPtr = ^AuthGetSpecificIdentityInfoPB;
  526.     AuthGetSpecificIdentityInfoPB = RECORD
  527.         qLink:                    Ptr;
  528.         reserved1:                LONGINT;
  529.         reserved2:                LONGINT;
  530.         ioCompletion:            AuthIOCompletionUPP;
  531.         ioResult:                OSErr;
  532.         saveA5:                    LONGINT;
  533.         reqCode:                INTEGER;
  534.         reserved:                ARRAY [0..1] OF LONGINT;
  535.         serverHint:                AddrBlock;
  536.         dsRefNum:                INTEGER;
  537.         callID:                    LONGINT;
  538.         identity:                AuthIdentity;
  539.         gReserved1:                LONGINT;
  540.         gReserved2:                LONGINT;
  541.         gReserved3:                LONGINT;
  542.         clientData:                LONGINT;
  543.         userIdentity:            AuthIdentity;                            {   --> identity of initiator  }
  544.         userRecord:                RecordIDPtr;                            {  <--  OCE name(Record) of the user  }
  545.     END;
  546.  
  547.  
  548. {
  549. kAuthAddKey:
  550. userRecord will contain the user information whose identity has to be
  551. created. userKey will point to the key to be created. password points to
  552. an RString containing the password used to generate the key.
  553. }
  554.     AuthAddKeyPBPtr = ^AuthAddKeyPB;
  555.     AuthAddKeyPB = RECORD
  556.         qLink:                    Ptr;
  557.         reserved1:                LONGINT;
  558.         reserved2:                LONGINT;
  559.         ioCompletion:            AuthIOCompletionUPP;
  560.         ioResult:                OSErr;
  561.         saveA5:                    LONGINT;
  562.         reqCode:                INTEGER;
  563.         reserved:                ARRAY [0..1] OF LONGINT;
  564.         serverHint:                AddrBlock;
  565.         dsRefNum:                INTEGER;
  566.         callID:                    LONGINT;
  567.         identity:                AuthIdentity;
  568.         gReserved1:                LONGINT;
  569.         gReserved2:                LONGINT;
  570.         gReserved3:                LONGINT;
  571.         clientData:                LONGINT;
  572.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  573.         userKey:                AuthKeyPtr;                                {  <--  OCE Key for the user  }
  574.         password:                RStringPtr;                                {   --> Pointer to password string  }
  575.     END;
  576.  
  577. {
  578. kAuthChangeKey:
  579. userRecord will contain the user information whose identity has to be
  580. created. userKey will point to the key to be created. password points to
  581. an RString containing the password used to generate the key.
  582. }
  583.     AuthChangeKeyPBPtr = ^AuthChangeKeyPB;
  584.     AuthChangeKeyPB = RECORD
  585.         qLink:                    Ptr;
  586.         reserved1:                LONGINT;
  587.         reserved2:                LONGINT;
  588.         ioCompletion:            AuthIOCompletionUPP;
  589.         ioResult:                OSErr;
  590.         saveA5:                    LONGINT;
  591.         reqCode:                INTEGER;
  592.         reserved:                ARRAY [0..1] OF LONGINT;
  593.         serverHint:                AddrBlock;
  594.         dsRefNum:                INTEGER;
  595.         callID:                    LONGINT;
  596.         identity:                AuthIdentity;
  597.         gReserved1:                LONGINT;
  598.         gReserved2:                LONGINT;
  599.         gReserved3:                LONGINT;
  600.         clientData:                LONGINT;
  601.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  602.         userKey:                AuthKeyPtr;                                {  <--  New OCE Key for the user  }
  603.         password:                RStringPtr;                                {   -->Pointer to the new password string  }
  604.     END;
  605.  
  606. {
  607. AuthDeleteKey:
  608. userRecord will contain the user information whose Key has to be deleted.
  609. }
  610.     AuthDeleteKeyPBPtr = ^AuthDeleteKeyPB;
  611.     AuthDeleteKeyPB = RECORD
  612.         qLink:                    Ptr;
  613.         reserved1:                LONGINT;
  614.         reserved2:                LONGINT;
  615.         ioCompletion:            AuthIOCompletionUPP;
  616.         ioResult:                OSErr;
  617.         saveA5:                    LONGINT;
  618.         reqCode:                INTEGER;
  619.         reserved:                ARRAY [0..1] OF LONGINT;
  620.         serverHint:                AddrBlock;
  621.         dsRefNum:                INTEGER;
  622.         callID:                    LONGINT;
  623.         identity:                AuthIdentity;
  624.         gReserved1:                LONGINT;
  625.         gReserved2:                LONGINT;
  626.         gReserved3:                LONGINT;
  627.         clientData:                LONGINT;
  628.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  629.     END;
  630.  
  631. { AuthPasswordToKey: Converts an RString into a key. }
  632.     AuthPasswordToKeyPBPtr = ^AuthPasswordToKeyPB;
  633.     AuthPasswordToKeyPB = RECORD
  634.         qLink:                    Ptr;
  635.         reserved1:                LONGINT;
  636.         reserved2:                LONGINT;
  637.         ioCompletion:            AuthIOCompletionUPP;
  638.         ioResult:                OSErr;
  639.         saveA5:                    LONGINT;
  640.         reqCode:                INTEGER;
  641.         reserved:                ARRAY [0..1] OF LONGINT;
  642.         serverHint:                AddrBlock;
  643.         dsRefNum:                INTEGER;
  644.         callID:                    LONGINT;
  645.         identity:                AuthIdentity;
  646.         gReserved1:                LONGINT;
  647.         gReserved2:                LONGINT;
  648.         gReserved3:                LONGINT;
  649.         clientData:                LONGINT;
  650.         userRecord:                RecordIDPtr;                            {   --> OCE name(Record) of the user  }
  651.         key:                    AuthKeyPtr;                                {  <--   }
  652.         password:                RStringPtr;                                {   -->Pointer to the new password string  }
  653.     END;
  654.  
  655. {
  656. kAuthGetCredentials:
  657. userRecord will contain the user information whose identity has to be
  658. kMailDeletedMask. keyType (e.g. asDESKey) will indicate what type of key has to
  659. be deleted.
  660. }
  661.     AuthGetCredentialsPBPtr = ^AuthGetCredentialsPB;
  662.     AuthGetCredentialsPB = RECORD
  663.         qLink:                    Ptr;
  664.         reserved1:                LONGINT;
  665.         reserved2:                LONGINT;
  666.         ioCompletion:            AuthIOCompletionUPP;
  667.         ioResult:                OSErr;
  668.         saveA5:                    LONGINT;
  669.         reqCode:                INTEGER;
  670.         reserved:                ARRAY [0..1] OF LONGINT;
  671.         serverHint:                AddrBlock;
  672.         dsRefNum:                INTEGER;
  673.         callID:                    LONGINT;
  674.         identity:                AuthIdentity;
  675.         gReserved1:                LONGINT;
  676.         gReserved2:                LONGINT;
  677.         gReserved3:                LONGINT;
  678.         clientData:                LONGINT;
  679.         userIdentity:            AuthIdentity;                            {   --> identity of initiator  }
  680.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  681.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  682.         expiry:                    UTCTime;                                {  <--> desired/actual expiry  }
  683.         credentialsLength:        LONGINT;                                {  <--> max/actual credentials size  }
  684.         credentials:            Ptr;                                    {  <--  buffer where credentials are returned  }
  685.     END;
  686.  
  687. {
  688. AuthDecryptCredentialsPB:
  689. Changes:
  690. userKey is changed userIdentity.
  691. userRecord is changed to initiatorRecord. User must supply buffer
  692. to hold initiatorRecord.
  693. agentList has changed to agent. There wil be no call back.
  694. User must supply buffer to hold agent Record.
  695. An additional boolean parameter 'hasAgent' is included.
  696. Toolbox will set this if an 'Agent' record is found in the
  697. credentials. If RecordIDPtr is 'nil', no agent record will
  698. be copied. However user can examine 'hasAgent', If true user
  699. can reissue this call with apprpriate buffer for getting a recordID.
  700. agent has changed to intermediary.  User must supply buffer to hold 
  701. intermediary Record.  The toolbox will set 'hasIntermediary' if an
  702. 'intermediary' record is found in the credentials. 
  703. }
  704.     AuthDecryptCredentialsPBPtr = ^AuthDecryptCredentialsPB;
  705.     AuthDecryptCredentialsPB = RECORD
  706.         qLink:                    Ptr;
  707.         reserved1:                LONGINT;
  708.         reserved2:                LONGINT;
  709.         ioCompletion:            AuthIOCompletionUPP;
  710.         ioResult:                OSErr;
  711.         saveA5:                    LONGINT;
  712.         reqCode:                INTEGER;
  713.         reserved:                ARRAY [0..1] OF LONGINT;
  714.         serverHint:                AddrBlock;
  715.         dsRefNum:                INTEGER;
  716.         callID:                    LONGINT;
  717.         identity:                AuthIdentity;
  718.         gReserved1:                LONGINT;
  719.         gReserved2:                LONGINT;
  720.         gReserved3:                LONGINT;
  721.         clientData:                LONGINT;
  722.         userIdentity:            AuthIdentity;                            {   --> user's Identity  }
  723.         initiatorRecord:        RecordIDPtr;                            {  <--  OCE name of the initiator  }
  724.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  725.         expiry:                    UTCTime;                                {  <--  credentials expiry time  }
  726.         credentialsLength:        LONGINT;                                {   --> actual credentials size  }
  727.         credentials:            Ptr;                                    {   --> credentials to be decrypted  }
  728.         issueTime:                UTCTime;                                {  <--  credentials expiry time  }
  729.         hasIntermediary:        BOOLEAN;                                {  <--  if true, An intermediary Record was found in credentials  }
  730.         filler1:                BOOLEAN;
  731.         intermediary:            RecordIDPtr;                            {  <--  recordID of the intermediary  }
  732.     END;
  733.  
  734.  
  735.     AuthMakeChallengePBPtr = ^AuthMakeChallengePB;
  736.     AuthMakeChallengePB = RECORD
  737.         qLink:                    Ptr;
  738.         reserved1:                LONGINT;
  739.         reserved2:                LONGINT;
  740.         ioCompletion:            AuthIOCompletionUPP;
  741.         ioResult:                OSErr;
  742.         saveA5:                    LONGINT;
  743.         reqCode:                INTEGER;
  744.         reserved:                ARRAY [0..1] OF LONGINT;
  745.         serverHint:                AddrBlock;
  746.         dsRefNum:                INTEGER;
  747.         callID:                    LONGINT;
  748.         identity:                AuthIdentity;
  749.         gReserved1:                LONGINT;
  750.         gReserved2:                LONGINT;
  751.         gReserved3:                LONGINT;
  752.         clientData:                LONGINT;
  753.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  754.         challenge:                Ptr;                                    {  <--  Encrypted Challenge  }
  755.         challengeBufferLength:    LONGINT;                                {   ->length of challenge buffer  }
  756.         challengeLength:        LONGINT;                                {   <-length of Encrypted Challenge  }
  757.     END;
  758.  
  759.     AuthMakeReplyPBPtr = ^AuthMakeReplyPB;
  760.     AuthMakeReplyPB = RECORD
  761.         qLink:                    Ptr;
  762.         reserved1:                LONGINT;
  763.         reserved2:                LONGINT;
  764.         ioCompletion:            AuthIOCompletionUPP;
  765.         ioResult:                OSErr;
  766.         saveA5:                    LONGINT;
  767.         reqCode:                INTEGER;
  768.         reserved:                ARRAY [0..1] OF LONGINT;
  769.         serverHint:                AddrBlock;
  770.         dsRefNum:                INTEGER;
  771.         callID:                    LONGINT;
  772.         identity:                AuthIdentity;
  773.         gReserved1:                LONGINT;
  774.         gReserved2:                LONGINT;
  775.         gReserved3:                LONGINT;
  776.         clientData:                LONGINT;
  777.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  778.         challenge:                Ptr;                                    {   --> Encrypted Challenge  }
  779.         reply:                    Ptr;                                    {  <--  Encrypted Reply  }
  780.         replyBufferLength:        LONGINT;                                {   -->length of challenge buffer  }
  781.         challengeLength:        LONGINT;                                {   --> length of Encrypted Challenge  }
  782.         replyLength:            LONGINT;                                {  <--  length of Encrypted Reply  }
  783.     END;
  784.  
  785.     AuthVerifyReplyPBPtr = ^AuthVerifyReplyPB;
  786.     AuthVerifyReplyPB = RECORD
  787.         qLink:                    Ptr;
  788.         reserved1:                LONGINT;
  789.         reserved2:                LONGINT;
  790.         ioCompletion:            AuthIOCompletionUPP;
  791.         ioResult:                OSErr;
  792.         saveA5:                    LONGINT;
  793.         reqCode:                INTEGER;
  794.         reserved:                ARRAY [0..1] OF LONGINT;
  795.         serverHint:                AddrBlock;
  796.         dsRefNum:                INTEGER;
  797.         callID:                    LONGINT;
  798.         identity:                AuthIdentity;
  799.         gReserved1:                LONGINT;
  800.         gReserved2:                LONGINT;
  801.         gReserved3:                LONGINT;
  802.         clientData:                LONGINT;
  803.         key:                    AuthKeyPtr;                                {   --> UnEncrypted SessionKey  }
  804.         challenge:                Ptr;                                    {   --> Encrypted Challenge  }
  805.         reply:                    Ptr;                                    {   --> Encrypted Reply  }
  806.         challengeLength:        LONGINT;                                {   --> length of Encrypted Challenge  }
  807.         replyLength:            LONGINT;                                {   --> length of Encrypted Reply  }
  808.     END;
  809.  
  810.  
  811.  
  812. {
  813. kAuthGetUTCTime:
  814. RLI will contain a valid RLI for a cluster server.
  815. UTC(GMT) time from one of the cluster server will be returned.
  816. An 'offSet' from UTC(GMT) to Mac Local Time will also be returned.
  817. If RLI is nil Map DA is used to determine UTC(GMT).
  818. Mac Local Time = theUTCTime + theUTCOffset.
  819. }
  820.     AuthGetUTCTimePBPtr = ^AuthGetUTCTimePB;
  821.     AuthGetUTCTimePB = RECORD
  822.         qLink:                    Ptr;
  823.         reserved1:                LONGINT;
  824.         reserved2:                LONGINT;
  825.         ioCompletion:            AuthIOCompletionUPP;
  826.         ioResult:                OSErr;
  827.         saveA5:                    LONGINT;
  828.         reqCode:                INTEGER;
  829.         reserved:                ARRAY [0..1] OF LONGINT;
  830.         serverHint:                AddrBlock;
  831.         dsRefNum:                INTEGER;
  832.         callID:                    LONGINT;
  833.         identity:                AuthIdentity;
  834.         gReserved1:                LONGINT;
  835.         gReserved2:                LONGINT;
  836.         gReserved3:                LONGINT;
  837.         clientData:                LONGINT;
  838.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI of the Node, whose server's UTC is requested  }
  839.         theUTCTime:                UTCTime;                                {  <--  current UTC(GMT) Time utc seconds since 1/1/1904  }
  840.         theUTCOffset:            UTCOffset;                                {  <--  offset from UTC(GMT) seconds EAST of Greenwich  }
  841.     END;
  842.  
  843.  
  844. {
  845. kAuthMakeProxy:
  846. A user represented bu the 'userIdentity' can make a proxy using this call.
  847. 'recipient' is the RecordID of the recipient whom user is requesting proxy.
  848. 'intermediary' is the RecordID of the intermediary holding proxy for the user.
  849. 'firstValid' is time at which proxy becomes valid.
  850. 'expiry' is the time at which proxy must expire.
  851. 'proxyLength' will have the length of the buffer pointed by 'proxy' as input.
  852. When the call completes, it will hold the actual length of proxy. If the
  853. call completes 'kOCEMoreData' error, client can reissue the call with the
  854. buffer size as 'proxyLength' returned.
  855. expiry is a suggestion, and may be adjusted to be earlier by the ADAP/OCE server.
  856. The 'proxy' obtained like this might be used by the 'intermediary' to obtain credentials
  857. for the server using TradeProxyForCredentials call.
  858. authDataLength and authData are intended for possible future work, but are
  859. ignored for now.
  860. }
  861.     AuthMakeProxyPBPtr = ^AuthMakeProxyPB;
  862.     AuthMakeProxyPB = RECORD
  863.         qLink:                    Ptr;
  864.         reserved1:                LONGINT;
  865.         reserved2:                LONGINT;
  866.         ioCompletion:            AuthIOCompletionUPP;
  867.         ioResult:                OSErr;
  868.         saveA5:                    LONGINT;
  869.         reqCode:                INTEGER;
  870.         reserved:                ARRAY [0..1] OF LONGINT;
  871.         serverHint:                AddrBlock;
  872.         dsRefNum:                INTEGER;
  873.         callID:                    LONGINT;
  874.         identity:                AuthIdentity;
  875.         gReserved1:                LONGINT;
  876.         gReserved2:                LONGINT;
  877.         gReserved3:                LONGINT;
  878.         clientData:                LONGINT;
  879.         userIdentity:            AuthIdentity;                            {   --> identity of principal  }
  880.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  881.         firstValid:                UTCTime;                                {   --> time at which proxy becomes valid  }
  882.         expiry:                    UTCTime;                                {   --> time at which proxy expires  }
  883.         authDataLength:            LONGINT;                                {   --> size of authorization data  }
  884.         authData:                Ptr;                                    {   --> pointer to authorization data  }
  885.         proxyLength:            LONGINT;                                {  <--> max/actual proxy size  }
  886.         proxy:                    Ptr;                                    {  <--> buffer where proxy is returned  }
  887.         intermediary:            RecordIDPtr;                            {   --> RecordID of intermediary  }
  888.     END;
  889.  
  890. {
  891. kAuthTradeProxyForCredentials:
  892. Using this call, intermediary holding a 'proxy' for a recipient may obtain credentials
  893. for that recipient. 'userIdentity' is the identity for the 'intermediary'.
  894. 'recipient' is the RecordID for whom credetials are requested.
  895. 'principal' is the RecordID of the user who created the proxy.
  896. 'proxyLength' is the length of data pointed by 'proxy.
  897. If the call is succesfull, credentials will be returned in the
  898. buffer pointed by 'credentials'. 'expiry' is the desired expiry time at input.
  899. When call succeds this will have expiry time of credentials.
  900. This is very similar to GetCredentials except that we (of course) need the proxy,
  901. but we also need the name of the principal who created the proxy.
  902. }
  903.     AuthTradeProxyForCredentialsPBPtr = ^AuthTradeProxyForCredentialsPB;
  904.     AuthTradeProxyForCredentialsPB = RECORD
  905.         qLink:                    Ptr;
  906.         reserved1:                LONGINT;
  907.         reserved2:                LONGINT;
  908.         ioCompletion:            AuthIOCompletionUPP;
  909.         ioResult:                OSErr;
  910.         saveA5:                    LONGINT;
  911.         reqCode:                INTEGER;
  912.         reserved:                ARRAY [0..1] OF LONGINT;
  913.         serverHint:                AddrBlock;
  914.         dsRefNum:                INTEGER;
  915.         callID:                    LONGINT;
  916.         identity:                AuthIdentity;
  917.         gReserved1:                LONGINT;
  918.         gReserved2:                LONGINT;
  919.         gReserved3:                LONGINT;
  920.         clientData:                LONGINT;
  921.         userIdentity:            AuthIdentity;                            {   --> identity of intermediary  }
  922.         recipient:                RecordIDPtr;                            {   --> OCE name of recipient  }
  923.         sessionKey:                AuthKeyPtr;                                {  <--  session key  }
  924.         expiry:                    UTCTime;                                {  <--> desired/actual expiry  }
  925.         credentialsLength:        LONGINT;                                {  <--> max/actual credentials size  }
  926.         credentials:            Ptr;                                    {  <--> buffer where credentials are returned  }
  927.         proxyLength:            LONGINT;                                {   --> actual proxy size  }
  928.         proxy:                    Ptr;                                    {   --> buffer containing proxy  }
  929.         principal:                RecordIDPtr;                            {   --> RecordID of principal  }
  930.     END;
  931.  
  932. { API for Local Identity Interface }
  933. {
  934. AuthGetLocalIdentityPB:
  935. A Collaborative application intended to work under the umbrella of LocalIdentity
  936. for the OCE toolbox will have to make this call to obtain LocalIdentity.
  937. If LocalIdentity has not been setup, then application will get
  938. 'kOCEOCESetupRequired.'. In this case application should put the dialog
  939. recommended by the OCE Setup document and guide the user through OCE Setup.
  940. If the OCESetup contains local identity, but user has not unlocked, it will get
  941. kOCELocalAuthenticationFail. In this case application should use SDPPromptForLocalIdentity
  942. to prompt user for the password.
  943. If a backGround application or stand alone code requires LocalIdentity, if it gets the
  944. OSErr from LocalIdentity and can not call SDPPromptForLocalIdentity, it should it self
  945. register with the toolbox using kAuthAddToLocalIdentityQueue call. It will be notified
  946. when a LocalIdentity gets created by a foreground application.
  947. }
  948.     AuthGetLocalIdentityPBPtr = ^AuthGetLocalIdentityPB;
  949.     AuthGetLocalIdentityPB = RECORD
  950.         qLink:                    Ptr;
  951.         reserved1:                LONGINT;
  952.         reserved2:                LONGINT;
  953.         ioCompletion:            AuthIOCompletionUPP;
  954.         ioResult:                OSErr;
  955.         saveA5:                    LONGINT;
  956.         reqCode:                INTEGER;
  957.         reserved:                ARRAY [0..1] OF LONGINT;
  958.         serverHint:                AddrBlock;
  959.         dsRefNum:                INTEGER;
  960.         callID:                    LONGINT;
  961.         identity:                AuthIdentity;
  962.         gReserved1:                LONGINT;
  963.         gReserved2:                LONGINT;
  964.         gReserved3:                LONGINT;
  965.         clientData:                LONGINT;
  966.         theLocalIdentity:        LocalIdentity;                            {  <--  LocalIdentity  }
  967.     END;
  968.  
  969. {
  970. kAuthUnlockLocalIdentity:
  971. The LocalIdentity can be created using this call.
  972. The userName and password correspond to the LocalIdentity setup.
  973. If the password matches, then collabIdentity will be returned.
  974. Typically SDPPromptForLocalIdentity call will make this call.
  975. All applications which are registered through kAuthAddToLocalIdentityQueue
  976. will be notified.
  977. }
  978.     AuthUnlockLocalIdentityPBPtr = ^AuthUnlockLocalIdentityPB;
  979.     AuthUnlockLocalIdentityPB = RECORD
  980.         qLink:                    Ptr;
  981.         reserved1:                LONGINT;
  982.         reserved2:                LONGINT;
  983.         ioCompletion:            AuthIOCompletionUPP;
  984.         ioResult:                OSErr;
  985.         saveA5:                    LONGINT;
  986.         reqCode:                INTEGER;
  987.         reserved:                ARRAY [0..1] OF LONGINT;
  988.         serverHint:                AddrBlock;
  989.         dsRefNum:                INTEGER;
  990.         callID:                    LONGINT;
  991.         identity:                AuthIdentity;
  992.         gReserved1:                LONGINT;
  993.         gReserved2:                LONGINT;
  994.         gReserved3:                LONGINT;
  995.         clientData:                LONGINT;
  996.         theLocalIdentity:        LocalIdentity;                            {  <--  LocalIdentity  }
  997.         userName:                RStringPtr;                                {   --> userName  }
  998.         password:                RStringPtr;                                {   -->user password  }
  999.     END;
  1000.  
  1001. {
  1002. kAuthLockLocalIdentity:
  1003. With this call existing LocalIdentity can be locked. If the ASDeleteLocalIdetity
  1004. call fails with 'kOCEOperationDenied' error, name will contain the application which
  1005. denied the operation. This name will be supplied by the application
  1006. when it registered through kAuthAddToLocalIdentityQueue call
  1007. }
  1008.     AuthLockLocalIdentityPBPtr = ^AuthLockLocalIdentityPB;
  1009.     AuthLockLocalIdentityPB = RECORD
  1010.         qLink:                    Ptr;
  1011.         reserved1:                LONGINT;
  1012.         reserved2:                LONGINT;
  1013.         ioCompletion:            AuthIOCompletionUPP;
  1014.         ioResult:                OSErr;
  1015.         saveA5:                    LONGINT;
  1016.         reqCode:                INTEGER;
  1017.         reserved:                ARRAY [0..1] OF LONGINT;
  1018.         serverHint:                AddrBlock;
  1019.         dsRefNum:                INTEGER;
  1020.         callID:                    LONGINT;
  1021.         identity:                AuthIdentity;
  1022.         gReserved1:                LONGINT;
  1023.         gReserved2:                LONGINT;
  1024.         gReserved3:                LONGINT;
  1025.         clientData:                LONGINT;
  1026.         theLocalIdentity:        LocalIdentity;                            {   --> LocalIdentity  }
  1027.         name:                    StringPtr;                                {  <--  name of the app which denied delete  }
  1028.     END;
  1029.  
  1030.     NotificationProcPtr = ProcPtr;  { FUNCTION Notification(clientData: LONGINT; callValue: AuthLocalIdentityOp; actionValue: AuthLocalIdentityLockAction; identity: LocalIdentity): BOOLEAN; }
  1031.  
  1032.     NotificationUPP = UniversalProcPtr;
  1033.     NotificationProc                    = NotificationUPP;
  1034. {
  1035. kAuthAddToLocalIdentityQueue:
  1036. An application requiring notification of locking/unlocking of the
  1037. LocalIdentity can install itself using this call. The function provided
  1038. in 'notifyProc' will be called whenever the requested event happens.
  1039. When an AuthLockLocalIdentity call is made to the toolbox, the notificationProc
  1040. will be called with 'kAuthLockPending'. The application may refuse the lock by returning
  1041. a 'true' value. If all the registered entries return 'false' value, locking will be done
  1042. successfully. Otherwise 'kOCEOperationDenied' error is returned to the caller. The appName
  1043. (registered with the notificationProc) of the application which denied locking is also
  1044. returned to the caller making the AuthLockIdentity call.
  1045. }
  1046.     AuthAddToLocalIdentityQueuePBPtr = ^AuthAddToLocalIdentityQueuePB;
  1047.     AuthAddToLocalIdentityQueuePB = RECORD
  1048.         qLink:                    Ptr;
  1049.         reserved1:                LONGINT;
  1050.         reserved2:                LONGINT;
  1051.         ioCompletion:            AuthIOCompletionUPP;
  1052.         ioResult:                OSErr;
  1053.         saveA5:                    LONGINT;
  1054.         reqCode:                INTEGER;
  1055.         reserved:                ARRAY [0..1] OF LONGINT;
  1056.         serverHint:                AddrBlock;
  1057.         dsRefNum:                INTEGER;
  1058.         callID:                    LONGINT;
  1059.         identity:                AuthIdentity;
  1060.         gReserved1:                LONGINT;
  1061.         gReserved2:                LONGINT;
  1062.         gReserved3:                LONGINT;
  1063.         clientData:                LONGINT;
  1064.         notifyProc:                NotificationUPP;                        {   --> notification procedure  }
  1065.         notifyFlags:            AuthNotifications;                        {   --> notifyFlags  }
  1066.         appName:                StringPtr;                                {   --> name of application to be returned in Delete/Stop  }
  1067.     END;
  1068.  
  1069. {
  1070. kAuthRemoveFromLocalIdentityQueue:}
  1071.     AuthRemoveFromLocalIdentityQueuePBPtr = ^AuthRemoveFromLocalIdentityQueuePB;
  1072.     AuthRemoveFromLocalIdentityQueuePB = RECORD
  1073.         qLink:                    Ptr;
  1074.         reserved1:                LONGINT;
  1075.         reserved2:                LONGINT;
  1076.         ioCompletion:            AuthIOCompletionUPP;
  1077.         ioResult:                OSErr;
  1078.         saveA5:                    LONGINT;
  1079.         reqCode:                INTEGER;
  1080.         reserved:                ARRAY [0..1] OF LONGINT;
  1081.         serverHint:                AddrBlock;
  1082.         dsRefNum:                INTEGER;
  1083.         callID:                    LONGINT;
  1084.         identity:                AuthIdentity;
  1085.         gReserved1:                LONGINT;
  1086.         gReserved2:                LONGINT;
  1087.         gReserved3:                LONGINT;
  1088.         clientData:                LONGINT;
  1089.         notifyProc:                NotificationUPP;                        {   --> notification procedure  }
  1090.     END;
  1091.  
  1092. {
  1093. kAuthSetupLocalIdentity:
  1094. The LocalIdentity can be Setup using this call.
  1095. The userName and password correspond to the LocalIdentity setup.
  1096. If a LocalIdentity Setup already exists 'kOCELocalIdentitySetupExists' error
  1097. will be returned.
  1098. }
  1099.     AuthSetupLocalIdentityPBPtr = ^AuthSetupLocalIdentityPB;
  1100.     AuthSetupLocalIdentityPB = RECORD
  1101.         qLink:                    Ptr;
  1102.         reserved1:                LONGINT;
  1103.         reserved2:                LONGINT;
  1104.         ioCompletion:            AuthIOCompletionUPP;
  1105.         ioResult:                OSErr;
  1106.         saveA5:                    LONGINT;
  1107.         reqCode:                INTEGER;
  1108.         reserved:                ARRAY [0..1] OF LONGINT;
  1109.         serverHint:                AddrBlock;
  1110.         dsRefNum:                INTEGER;
  1111.         callID:                    LONGINT;
  1112.         identity:                AuthIdentity;
  1113.         gReserved1:                LONGINT;
  1114.         gReserved2:                LONGINT;
  1115.         gReserved3:                LONGINT;
  1116.         clientData:                LONGINT;
  1117.         aReserved:                LONGINT;                                {   --   }
  1118.         userName:                RStringPtr;                                {   --> userName  }
  1119.         password:                RStringPtr;                                {   -->user password  }
  1120.     END;
  1121.  
  1122. {
  1123. kAuthChangeLocalIdentity:
  1124. An existing LocalIdentity  Setup can be changed using this call.
  1125. The userName and password correspond to the LocalIdentity setup.
  1126. If a LocalIdentity Setup does not exists 'kOCEOCESetupRequired' error
  1127. will be returned. The user can use  kAuthSetupLocalIdentity call to setit up.
  1128. If the 'password' does not correspond to the existing setup, 'kOCELocalAuthenticationFail'
  1129. OSErr will be returned. If successful, LocalID will have new name as 'userName' and
  1130. password as 'newPassword' and if any applications has installed into 
  1131. LocalIdentityQueue with kNotifyNameChangeMask set, it will be notified with 
  1132. kAuthLocalIdentityNameChangeOp action value. 
  1133.  
  1134. }
  1135.     AuthChangeLocalIdentityPBPtr = ^AuthChangeLocalIdentityPB;
  1136.     AuthChangeLocalIdentityPB = RECORD
  1137.         qLink:                    Ptr;
  1138.         reserved1:                LONGINT;
  1139.         reserved2:                LONGINT;
  1140.         ioCompletion:            AuthIOCompletionUPP;
  1141.         ioResult:                OSErr;
  1142.         saveA5:                    LONGINT;
  1143.         reqCode:                INTEGER;
  1144.         reserved:                ARRAY [0..1] OF LONGINT;
  1145.         serverHint:                AddrBlock;
  1146.         dsRefNum:                INTEGER;
  1147.         callID:                    LONGINT;
  1148.         identity:                AuthIdentity;
  1149.         gReserved1:                LONGINT;
  1150.         gReserved2:                LONGINT;
  1151.         gReserved3:                LONGINT;
  1152.         clientData:                LONGINT;
  1153.         aReserved:                LONGINT;                                {   --   }
  1154.         userName:                RStringPtr;                                {   --> userName  }
  1155.         password:                RStringPtr;                                {   --> current password  }
  1156.         newPassword:            RStringPtr;                                {   --> new password  }
  1157.     END;
  1158.  
  1159. {
  1160. kAuthRemoveLocalIdentity:
  1161. An existing LocalIdentity  Setup can be removed using this call.
  1162. The userName and password correspond to the LocalIdentity setup.
  1163. If a LocalIdentity Setup does not exists 'kOCEOCESetupRequired' error
  1164. will be returned.
  1165. If the 'password' does not correspond to the existing setup, 'kOCELocalAuthenticationFail'
  1166. OSErr will be returned. If successful, LocalIdentity will be removed from the OCE Setup.
  1167. This is a very distructive operation, user must be warned enough before actually making
  1168. this call.
  1169. }
  1170.     AuthRemoveLocalIdentityPBPtr = ^AuthRemoveLocalIdentityPB;
  1171.     AuthRemoveLocalIdentityPB = RECORD
  1172.         qLink:                    Ptr;
  1173.         reserved1:                LONGINT;
  1174.         reserved2:                LONGINT;
  1175.         ioCompletion:            AuthIOCompletionUPP;
  1176.         ioResult:                OSErr;
  1177.         saveA5:                    LONGINT;
  1178.         reqCode:                INTEGER;
  1179.         reserved:                ARRAY [0..1] OF LONGINT;
  1180.         serverHint:                AddrBlock;
  1181.         dsRefNum:                INTEGER;
  1182.         callID:                    LONGINT;
  1183.         identity:                AuthIdentity;
  1184.         gReserved1:                LONGINT;
  1185.         gReserved2:                LONGINT;
  1186.         gReserved3:                LONGINT;
  1187.         clientData:                LONGINT;
  1188.         aReserved:                LONGINT;                                {   --   }
  1189.         userName:                RStringPtr;                                {   --> userName  }
  1190.         password:                RStringPtr;                                {   --> current password  }
  1191.     END;
  1192.  
  1193. {
  1194. kOCESetupAddDirectoryInfo:
  1195. Using this call identity for a catalog can be setup under LocalIdentity umbrella.
  1196. ASCreateLocalIdentity should have been done succesfully before making this call.    
  1197. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1198. DirAddDSAMDirectory call was made.
  1199. rid-> is the recordID in which the identity for the catalog will be established.
  1200. password-> the password associated with the rid in the catalog world.
  1201. }
  1202.     OCESetupAddDirectoryInfoPBPtr = ^OCESetupAddDirectoryInfoPB;
  1203.     OCESetupAddDirectoryInfoPB = RECORD
  1204.         qLink:                    Ptr;
  1205.         reserved1:                LONGINT;
  1206.         reserved2:                LONGINT;
  1207.         ioCompletion:            AuthIOCompletionUPP;
  1208.         ioResult:                OSErr;
  1209.         saveA5:                    LONGINT;
  1210.         reqCode:                INTEGER;
  1211.         reserved:                ARRAY [0..1] OF LONGINT;
  1212.         serverHint:                AddrBlock;
  1213.         dsRefNum:                INTEGER;
  1214.         callID:                    LONGINT;
  1215.         identity:                AuthIdentity;
  1216.         gReserved1:                LONGINT;
  1217.         gReserved2:                LONGINT;
  1218.         gReserved3:                LONGINT;
  1219.         clientData:                LONGINT;
  1220.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1221.         recordID:                RecordIDPtr;                            {   --> recordID for the identity  }
  1222.         password:                RStringPtr;                                {   --> password in the catalog world  }
  1223.     END;
  1224.  
  1225. {
  1226. kOCESetupChangeDirectoryInfo:
  1227. Using this call an existing identity for a catalog under LocalIdentity umbrella
  1228. can be changed.
  1229. ASCreateLocalIdentity should have been done succesfully before making this call.
  1230. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1231. DirAddDSAMDirectory call was made.
  1232. rid-> is the recordID in which the identity for the catalog will be established.
  1233. password-> the password associated with the rid in the catalog world.
  1234. newPassword -> the new password for the catalog
  1235. }
  1236.     OCESetupChangeDirectoryInfoPBPtr = ^OCESetupChangeDirectoryInfoPB;
  1237.     OCESetupChangeDirectoryInfoPB = RECORD
  1238.         qLink:                    Ptr;
  1239.         reserved1:                LONGINT;
  1240.         reserved2:                LONGINT;
  1241.         ioCompletion:            AuthIOCompletionUPP;
  1242.         ioResult:                OSErr;
  1243.         saveA5:                    LONGINT;
  1244.         reqCode:                INTEGER;
  1245.         reserved:                ARRAY [0..1] OF LONGINT;
  1246.         serverHint:                AddrBlock;
  1247.         dsRefNum:                INTEGER;
  1248.         callID:                    LONGINT;
  1249.         identity:                AuthIdentity;
  1250.         gReserved1:                LONGINT;
  1251.         gReserved2:                LONGINT;
  1252.         gReserved3:                LONGINT;
  1253.         clientData:                LONGINT;
  1254.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1255.         recordID:                RecordIDPtr;                            {   --> recordID for the identity  }
  1256.         password:                RStringPtr;                                {   --> password in the catalog world  }
  1257.         newPassword:            RStringPtr;                                {   --> new password in the catalog  }
  1258.     END;
  1259.  
  1260. {
  1261. kOCESetupRemoveDirectoryInfo:
  1262. Using this call an existing identity for a catalog under LocalIdentity umbrella
  1263. can be changed.
  1264. ASCreateLocalIdentity should have been done succesfully before making this call.
  1265. directoryRecordCID -> is the record creationID obtained when DirAddOCEDirectory or
  1266. }
  1267.     OCESetupRemoveDirectoryInfoPBPtr = ^OCESetupRemoveDirectoryInfoPB;
  1268.     OCESetupRemoveDirectoryInfoPB = RECORD
  1269.         qLink:                    Ptr;
  1270.         reserved1:                LONGINT;
  1271.         reserved2:                LONGINT;
  1272.         ioCompletion:            AuthIOCompletionUPP;
  1273.         ioResult:                OSErr;
  1274.         saveA5:                    LONGINT;
  1275.         reqCode:                INTEGER;
  1276.         reserved:                ARRAY [0..1] OF LONGINT;
  1277.         serverHint:                AddrBlock;
  1278.         dsRefNum:                INTEGER;
  1279.         callID:                    LONGINT;
  1280.         identity:                AuthIdentity;
  1281.         gReserved1:                LONGINT;
  1282.         gReserved2:                LONGINT;
  1283.         gReserved3:                LONGINT;
  1284.         clientData:                LONGINT;
  1285.         directoryRecordCID:        CreationID;                                {   --> CreationID for the catalog  }
  1286.     END;
  1287.  
  1288. {
  1289. kOCESetupGetDirectoryInfo:
  1290. Using this call info on an existing identity for a particular catalog under LocalIdentity umbrella
  1291. can be obtained.
  1292. For the specified catalog 'directoryName' and 'discriminator', rid and nativeName will
  1293. returned. Caller must provide appropriate buffer to get back rid and nativeName.
  1294. 'password' will be returned  for  non-ADAP Catalogs.
  1295. }
  1296.     OCESetupGetDirectoryInfoPBPtr = ^OCESetupGetDirectoryInfoPB;
  1297.     OCESetupGetDirectoryInfoPB = RECORD
  1298.         qLink:                    Ptr;
  1299.         reserved1:                LONGINT;
  1300.         reserved2:                LONGINT;
  1301.         ioCompletion:            AuthIOCompletionUPP;
  1302.         ioResult:                OSErr;
  1303.         saveA5:                    LONGINT;
  1304.         reqCode:                INTEGER;
  1305.         reserved:                ARRAY [0..1] OF LONGINT;
  1306.         serverHint:                AddrBlock;
  1307.         dsRefNum:                INTEGER;
  1308.         callID:                    LONGINT;
  1309.         identity:                AuthIdentity;
  1310.         gReserved1:                LONGINT;
  1311.         gReserved2:                LONGINT;
  1312.         gReserved3:                LONGINT;
  1313.         clientData:                LONGINT;
  1314.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  1315.         discriminator:            DirDiscriminator;                        {   --> discriminator for the catalog  }
  1316.         recordID:                RecordIDPtr;                            {  <--  rid for the catalog identity  }
  1317.         nativeName:                RStringPtr;                                {  <--  user name in the catalog world  }
  1318.         password:                RStringPtr;                                {  <--  password in the catalog world  }
  1319.     END;
  1320.  
  1321. {****************************************************************************
  1322.  
  1323.  
  1324.          Catalog Manager operations
  1325.  
  1326.  
  1327. ****************************************************************************}
  1328.     DirParamBlockPtr = ^DirParamBlock;
  1329.     DirIOCompletionProcPtr = Register68kProcPtr;  { PROCEDURE DirIOCompletion(paramBlock: DirParamBlockPtr); }
  1330.  
  1331.     DirIOCompletionUPP = UniversalProcPtr;
  1332. { AddRecord }
  1333.     DirAddRecordPBPtr = ^DirAddRecordPB;
  1334.     DirAddRecordPB = RECORD
  1335.         qLink:                    Ptr;
  1336.         reserved1:                LONGINT;
  1337.         reserved2:                LONGINT;
  1338.         ioCompletion:            DirIOCompletionUPP;
  1339.         ioResult:                OSErr;
  1340.         saveA5:                    LONGINT;
  1341.         reqCode:                INTEGER;
  1342.         reserved:                ARRAY [0..1] OF LONGINT;
  1343.         serverHint:                AddrBlock;
  1344.         dsRefNum:                INTEGER;
  1345.         callID:                    LONGINT;
  1346.         identity:                AuthIdentity;
  1347.         gReserved1:                LONGINT;
  1348.         gReserved2:                LONGINT;
  1349.         gReserved3:                LONGINT;
  1350.         clientData:                LONGINT;
  1351.         aRecord:                RecordIDPtr;                            {   --> CreationID returned here  }
  1352.         allowDuplicate:            BOOLEAN;                                {   -->  }
  1353.         filler1:                BOOLEAN;
  1354.     END;
  1355.  
  1356.  
  1357.  
  1358. { DeleteRecord }
  1359.     DirDeleteRecordPBPtr = ^DirDeleteRecordPB;
  1360.     DirDeleteRecordPB = RECORD
  1361.         qLink:                    Ptr;
  1362.         reserved1:                LONGINT;
  1363.         reserved2:                LONGINT;
  1364.         ioCompletion:            DirIOCompletionUPP;
  1365.         ioResult:                OSErr;
  1366.         saveA5:                    LONGINT;
  1367.         reqCode:                INTEGER;
  1368.         reserved:                ARRAY [0..1] OF LONGINT;
  1369.         serverHint:                AddrBlock;
  1370.         dsRefNum:                INTEGER;
  1371.         callID:                    LONGINT;
  1372.         identity:                AuthIdentity;
  1373.         gReserved1:                LONGINT;
  1374.         gReserved2:                LONGINT;
  1375.         gReserved3:                LONGINT;
  1376.         clientData:                LONGINT;
  1377.         aRecord:                RecordIDPtr;                            {   -->  }
  1378.     END;
  1379.  
  1380. { aRecord must contain valid PackedRLI and a CreationID. }
  1381.  
  1382.  
  1383. {********************************************************************************}
  1384. {
  1385. DirEnumerate:
  1386. This call can be used to enumerate both DNodes and records under a specified
  1387. DNode. A DNode is specified by the PackedRLIPtr 'aRLI'.
  1388.  
  1389. startingPoint indicates where to start the enumeration.  Initially,
  1390. it should be set to a value of nil.  After some records are enumerated,
  1391. the client can issue the call again with the same aRLI and recordName and
  1392. typeList. The last received DirEnumSpec in the startingPoint field.  The server
  1393. will continue the enumeration from that record on. if user wants to get back the
  1394. value specified in the startingRecord also, the Boolean 'includeStartingPoint'
  1395. must be set to 'true'. If this is set to 'false', records specified after the
  1396. startingPoint record will be returned.
  1397.  
  1398. sortBy indicates to the server to return the records that match in name-first
  1399. or type-first order.  sortDirection indicates to the server to search in forward
  1400. or backward sort order for RecordIDs Specified.
  1401.  
  1402. RecordIDS and Enumeration Criteria:
  1403.  
  1404. PackedRLIPtr parameter 'aRLI' will be accepted for DNode
  1405. specification.
  1406.  
  1407. One RStringPtr 'nameMatchString' is provided. User is allowed to
  1408. specify a wild card in the name. WildCard specification is specified in 
  1409. matchNameHow parameter and possible values are defined in DirMatchWith Enum.
  1410.  
  1411. 'typeCount' parameter indicate how many types are in the 'typeList'.
  1412.  
  1413. 'typeList' parmeter is a pointer to an RString array of size 'typeCount'.
  1414.  
  1415. If 'typeCount' is exactly equal to one, a wild card can be specified
  1416. for the entity type; otherwise types have to be completely specified.
  1417. WildCard specification is specified in  matchNameHow parameter
  1418.  and possible values are defined in DirMatchWith Enum.
  1419.  
  1420.  
  1421. A nil value for 'startingPoint' is allowed when sortDirection specified
  1422. is 'kSortBackwards'. This was not allowed previously.
  1423.  
  1424. 'enumFlags' parameter is a bit field. The following bits can be set:
  1425.     kEnumDistinguishedNameMask to get back records in the cluster data base.
  1426.     kEnumAliasMask to get back record aliases
  1427.     kEnumPseudonymMask to get back record pseudonyms
  1428.     kEnumDNodeMask to get back any children dNodes for the DNode specified in the
  1429.     'aRLI' parameter.
  1430.     kEnumForeignDNodeMask to get back any children dNodes which have ForeignDnodes in the
  1431.     dNode specified in the 'aRLI' parameter.
  1432.  
  1433.     kEnumAll is combination of all five values and can be used to enumerate
  1434.     everything under a specified DNode.
  1435.  
  1436.  
  1437.  
  1438. The results returned for each element will consist of a DirEnumSpec.
  1439. The DirEnumSpec contains 'enumFlag' which indicates the type of entity and a
  1440. union which will have either DNodeID or LocalRecordID depending on the value of 'enumFlag'.
  1441. The 'enumFlag'  will indicate whether the returned element is a
  1442. record(kEnumDistinguishedNameMask bit) or a alias(kEnumAliasMask bit) or a
  1443. Pseudonym(kEnumPseudonymMask) or a child DNode(kEnumDNodeMask bit).  If the 'enumFlag' value
  1444. is kEnumDnodeMask, it indicates the value returned in the union is a DNodeID (i.e. 'dNodeNumber'
  1445. is the 'dNodeNumber' of the child dnode(if the catalog supports dNodeNumbers, otherwise
  1446. this will be set to zero). The name will be the child dnode name. For other values of the
  1447. 'enumFlag', the value in the union will be LocalRecordID. In addition to kEnumDnodeMask it is
  1448. possible that kEnumForeignDNodeMask is also set. This is an advisory bit and application must make
  1449. it's own decision before displaying these records. If catalog supports kSupportIndexRatioMask, it
  1450. may also return the relative position of the record (percentile of total records) in the 
  1451. indexRatio field in EnumSpec.
  1452.  
  1453.  
  1454. responseSLRV will contain the script, language, region and version of the oce sorting software.
  1455. The results will be collected in the 'getBuffer' supplied by the user.
  1456. If buffer can not hold all the data returned 'kOCEMoreData' error will be returned.
  1457.  
  1458. If user receives 'noErr' or 'kOCEMoreData', buffer will contain valid results. A user
  1459. can extract the results in the 'getBuffer' by making DirEnumerateParse' call.
  1460. }
  1461.  
  1462.     DirEnumerateGetPBPtr = ^DirEnumerateGetPB;
  1463.     DirEnumerateGetPB = RECORD
  1464.         qLink:                    Ptr;
  1465.         reserved1:                LONGINT;
  1466.         reserved2:                LONGINT;
  1467.         ioCompletion:            DirIOCompletionUPP;
  1468.         ioResult:                OSErr;
  1469.         saveA5:                    LONGINT;
  1470.         reqCode:                INTEGER;
  1471.         reserved:                ARRAY [0..1] OF LONGINT;
  1472.         serverHint:                AddrBlock;
  1473.         dsRefNum:                INTEGER;
  1474.         callID:                    LONGINT;
  1475.         identity:                AuthIdentity;
  1476.         gReserved1:                LONGINT;
  1477.         gReserved2:                LONGINT;
  1478.         gReserved3:                LONGINT;
  1479.         clientData:                LONGINT;
  1480.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  1481.         startingPoint:            DirEnumSpecPtr;                            {   -->  }
  1482.         sortBy:                    DirSortOption;                            {   -->  }
  1483.         sortDirection:            DirSortDirection;                        {   -->  }
  1484.         dReserved:                LONGINT;                                {   --   }
  1485.         nameMatchString:        RStringPtr;                                {   --> name from which enumeration should start  }
  1486.         typesList:                ^RStringPtr;                            {   --> list of entity types to be enumerated  }
  1487.         typeCount:                LONGINT;                                {   --> number of types in the list  }
  1488.         enumFlags:                DirEnumChoices;                            {   --> indicates what to enumerate  }
  1489.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the record specified in starting point  }
  1490.         padByte:                SInt8;
  1491.         matchNameHow:            SInt8;                                    {   --> Matching Criteria for nameMatchString  }
  1492.         matchTypeHow:            SInt8;                                    {   --> Matching Criteria for typeList  }
  1493.         getBuffer:                Ptr;                                    {   -->  }
  1494.         getBufferSize:            LONGINT;                                {   -->  }
  1495.         responseSLRV:            SLRV;                                    {   <--  response SLRV  }
  1496.     END;
  1497.  
  1498. { The EnumerateRecords call-back function is defined as follows: }
  1499.     ForEachDirEnumSpecProcPtr = ProcPtr;  { FUNCTION ForEachDirEnumSpec(clientData: LONGINT; (CONST)VAR enumSpec: DirEnumSpec): BOOLEAN; }
  1500.  
  1501.     ForEachDirEnumSpecUPP = UniversalProcPtr;
  1502.     ForEachDirEnumSpec                    = ForEachDirEnumSpecUPP;
  1503. {
  1504. EnumerateParse:
  1505. After an EnumerateGet call has completed, call EnumerateParse
  1506. to parse through the buffer that was filled in EnumerateGet.
  1507.  
  1508. 'eachEnumSpec' will be called each time to return to the client a
  1509. DirEnumSpec that matches the pattern for enumeration. 'enumFlag' indicates the type
  1510. of information returned in the DirEnumSpec
  1511. The clientData parameter that you pass in the parameter block will be passed
  1512. to 'forEachEnumDSSpecFunc'.  You are free to put anything in clientData - it is intended
  1513. to allow you some way to match the call-back to the original call (for
  1514. example, you make more then one aysynchronous EnumerateGet calls and you want to
  1515. associate returned results in some way).
  1516.  
  1517. The client should return FALSE from 'eachEnumSpec' to continue
  1518. processing of the EnumerateParse request.  Returning TRUE will
  1519. terminate the EnumerateParse request.
  1520.  
  1521. For synchronous calls, the call-back routine actually runs as part of the same thread
  1522. of execution as the thread that made the EnumerateParse call.  That means that the
  1523. same low-memory globals, A5, stack, etc. are in effect during the call-back
  1524. that were in effect when the call was made.  Because of this, the call-back
  1525. routine has the same restrictions as the caller of EnumerateParse:
  1526. if EnumerateParse was not called from interrupt level, then the call-
  1527. back routine can allocate memory. For asynchronous calls, call-back routine is
  1528. like a ioCompletion except that A5 will be preserved for the application.
  1529. }
  1530.     DirEnumerateParsePBPtr = ^DirEnumerateParsePB;
  1531.     DirEnumerateParsePB = RECORD
  1532.         qLink:                    Ptr;
  1533.         reserved1:                LONGINT;
  1534.         reserved2:                LONGINT;
  1535.         ioCompletion:            DirIOCompletionUPP;
  1536.         ioResult:                OSErr;
  1537.         saveA5:                    LONGINT;
  1538.         reqCode:                INTEGER;
  1539.         reserved:                ARRAY [0..1] OF LONGINT;
  1540.         serverHint:                AddrBlock;
  1541.         dsRefNum:                INTEGER;
  1542.         callID:                    LONGINT;
  1543.         identity:                AuthIdentity;
  1544.         gReserved1:                LONGINT;
  1545.         gReserved2:                LONGINT;
  1546.         gReserved3:                LONGINT;
  1547.         clientData:                LONGINT;
  1548.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  1549.         bReserved:                LONGINT;                                {   --   }
  1550.         cReserved:                LONGINT;                                {   --   }
  1551.         eachEnumSpec:            ForEachDirEnumSpec;                        {   -->  }
  1552.         eReserved:                LONGINT;                                {   --   }
  1553.         fReserved:                LONGINT;                                {   --   }
  1554.         gReserved:                LONGINT;                                {   --   }
  1555.         hReserved:                LONGINT;                                {   --   }
  1556.         iReserved:                LONGINT;                                {   --   }
  1557.         getBuffer:                Ptr;                                    {   -->  }
  1558.         getBufferSize:            LONGINT;                                {   -->  }
  1559.         l1Reserved:                INTEGER;                                {   --  }
  1560.         l2Reserved:                INTEGER;                                {   --   }
  1561.         l3Reserved:                INTEGER;                                {   --  }
  1562.         l4Reserved:                INTEGER;                                {   --   }
  1563.     END;
  1564.  
  1565. {
  1566.  * FindRecordGet operates similarly to DirEnumerate except it returns a list
  1567.  * of records instead of records local to a cluster.
  1568. }
  1569.     DirFindRecordGetPBPtr = ^DirFindRecordGetPB;
  1570.     DirFindRecordGetPB = RECORD
  1571.         qLink:                    Ptr;
  1572.         reserved1:                LONGINT;
  1573.         reserved2:                LONGINT;
  1574.         ioCompletion:            DirIOCompletionUPP;
  1575.         ioResult:                OSErr;
  1576.         saveA5:                    LONGINT;
  1577.         reqCode:                INTEGER;
  1578.         reserved:                ARRAY [0..1] OF LONGINT;
  1579.         serverHint:                AddrBlock;
  1580.         dsRefNum:                INTEGER;
  1581.         callID:                    LONGINT;
  1582.         identity:                AuthIdentity;
  1583.         gReserved1:                LONGINT;
  1584.         gReserved2:                LONGINT;
  1585.         gReserved3:                LONGINT;
  1586.         clientData:                LONGINT;
  1587.         startingPoint:            RecordIDPtr;
  1588.         reservedA:                ARRAY [0..1] OF LONGINT;
  1589.         nameMatchString:        RStringPtr;
  1590.         typesList:                ^RStringPtr;
  1591.         typeCount:                LONGINT;
  1592.         reservedB:                LONGINT;
  1593.         reservedC:                INTEGER;
  1594.         matchNameHow:            SInt8;
  1595.         matchTypeHow:            SInt8;
  1596.         getBuffer:                Ptr;
  1597.         getBufferSize:            LONGINT;
  1598.         directoryName:            DirectoryNamePtr;
  1599.         discriminator:            DirDiscriminator;
  1600.     END;
  1601.  
  1602. { The FindRecordParse call-back function is defined as follows: }
  1603.     ForEachRecordProcPtr = ProcPtr;  { FUNCTION ForEachRecord(clientData: LONGINT; (CONST)VAR enumSpec: DirEnumSpec; pRLI: PackedRLIPtr): BOOLEAN; }
  1604.  
  1605.     ForEachRecordUPP = UniversalProcPtr;
  1606.     ForEachRecord                        = ForEachRecordUPP;
  1607. {
  1608.  * This PB same as DirFindRecordGet except it includes the callback function
  1609. }
  1610.     DirFindRecordParsePBPtr = ^DirFindRecordParsePB;
  1611.     DirFindRecordParsePB = RECORD
  1612.         qLink:                    Ptr;
  1613.         reserved1:                LONGINT;
  1614.         reserved2:                LONGINT;
  1615.         ioCompletion:            DirIOCompletionUPP;
  1616.         ioResult:                OSErr;
  1617.         saveA5:                    LONGINT;
  1618.         reqCode:                INTEGER;
  1619.         reserved:                ARRAY [0..1] OF LONGINT;
  1620.         serverHint:                AddrBlock;
  1621.         dsRefNum:                INTEGER;
  1622.         callID:                    LONGINT;
  1623.         identity:                AuthIdentity;
  1624.         gReserved1:                LONGINT;
  1625.         gReserved2:                LONGINT;
  1626.         gReserved3:                LONGINT;
  1627.         clientData:                LONGINT;
  1628.         startingPoint:            RecordIDPtr;
  1629.         reservedA:                ARRAY [0..1] OF LONGINT;
  1630.         nameMatchString:        RStringPtr;
  1631.         typesList:                ^RStringPtr;
  1632.         typeCount:                LONGINT;
  1633.         reservedB:                LONGINT;
  1634.         reservedC:                INTEGER;
  1635.         matchNameHow:            SInt8;
  1636.         matchTypeHow:            SInt8;
  1637.         getBuffer:                Ptr;
  1638.         getBufferSize:            LONGINT;
  1639.         directoryName:            DirectoryNamePtr;
  1640.         discriminator:            DirDiscriminator;
  1641.         forEachRecordFunc:        ForEachRecord;
  1642.     END;
  1643.  
  1644.  
  1645.  
  1646. {
  1647. LookupGet:
  1648.  
  1649. aRecordList is an array of pointers to RecordIDs, each of which must
  1650. contain valid PackedRLI and a CreationID.  recordIDCount is
  1651. the size of this array.
  1652.  
  1653. attrTypeList is an array of pointers to AttributeTypes.  attrTypeCount is
  1654. the size of this array.
  1655.  
  1656. staringRecordIndex is the record from which to continue the lookup.
  1657. If you want to start from first record in the list, this must be 1 (not zero).
  1658. This value must always be <= recordIDCount.
  1659.  
  1660. startingAttributeIndex is the AttributeType from which we want to continue the lookup.
  1661. If you want to start from first attribute in the list, this must be 1 (not zero).
  1662. This value must always be <= attrTypeCount.
  1663.  
  1664. startingAttribute is the value of the attribute value from which we want to
  1665. continue lookup. In case of catalogs supporting creationIDs, startingAttribute
  1666. may contain only a CID. Other catalogs may require the entire value.
  1667. If a non-null cid is given and if an attribute value with that cid is not found, this
  1668. call will terminate with kOCENoSuchAttribute error. A client should not make a LookupParse call
  1669. after getting this error.
  1670.  
  1671. 'includeStartingPoint' boolean can be set to 'true' to receive the value specified in the
  1672. startingPoint in the results returned. If this is set to 'false', the value
  1673. specified in the startingAttribute will not be returned.
  1674.  
  1675. When LookupGet call fails with kOCEMoreData, the client will be able to find out where the call ended
  1676. with a subsequent LookupParse call. When the LookupParse call completes with kOCEMoreData,
  1677. lastRecordIndex, lastAttributeIndex and lastValueCID will point to the corresponding
  1678. recordID, attributeType and the CreationID of the last value returned successfully. These parameters
  1679. are exactly the same ones for the startingRecordIndex, startingAttributeIndex, and startingAttrValueCID
  1680. so they can be used in a subsequent LookupGet call to continue the lookup.
  1681.  
  1682. In an extreme case, It is possible that we had an attribute value that is too large to fit
  1683. in the client's buffer. In such cases, if it was the only thing that we tried to fit
  1684. into the buffer, the client will not able to proceed further because he will not know the
  1685. attributeCID of the attribute to continue with.  Also he does not know how big a buffer
  1686. would be needed for the next call to get this 'mondo' attribute value successfully.
  1687.  
  1688. to support this, LookupParse call will do the following:
  1689.  
  1690. If LookupGet has failed with kOCEMoreData error, LookupParse will check to make sure that
  1691. ForEachAttributeValueFunc has been called at least once. If so, the client has the option
  1692. to continue from that attribute CreationID (for PAB/ADAP) in the next LookupGet call.
  1693. However, if it was not even called once, then the attribute value may be too big to fit in the
  1694. user's buffer. In this case, lastAttrValueCID (lastAttribute) and attrSize are returned in the
  1695. parse buffer and the call will fail with kOCEMoreAttrValue. However, it is possible that
  1696. ForEachAttributeValue was not called because the user does not have read access to some of
  1697. the attributeTypes in the list, and the buffer was full before even reading the creationID of
  1698. any of the attribute values.  A kOCEMoreData error is returned.
  1699.  
  1700. The Toolbox will check for duplicate RecordIDs in the aRecordList. If found, it will return
  1701. 'daDuplicateRecordIDErr'.
  1702.  
  1703. The Toolbox will check for duplicate AttributeTypes in the attrTypeList. If found it will
  1704. return 'daDuplicateAttrTypeErr'.
  1705. }
  1706.     DirLookupGetPBPtr = ^DirLookupGetPB;
  1707.     DirLookupGetPB = RECORD
  1708.         qLink:                    Ptr;
  1709.         reserved1:                LONGINT;
  1710.         reserved2:                LONGINT;
  1711.         ioCompletion:            DirIOCompletionUPP;
  1712.         ioResult:                OSErr;
  1713.         saveA5:                    LONGINT;
  1714.         reqCode:                INTEGER;
  1715.         reserved:                ARRAY [0..1] OF LONGINT;
  1716.         serverHint:                AddrBlock;
  1717.         dsRefNum:                INTEGER;
  1718.         callID:                    LONGINT;
  1719.         identity:                AuthIdentity;
  1720.         gReserved1:                LONGINT;
  1721.         gReserved2:                LONGINT;
  1722.         gReserved3:                LONGINT;
  1723.         clientData:                LONGINT;
  1724.         aRecordList:            ^RecordIDPtr;                            {   --> an array of RecordID pointers  }
  1725.         attrTypeList:            ^AttributeTypePtr;                        {   --> an array of attribute types  }
  1726.         cReserved:                LONGINT;                                {   --   }
  1727.         dReserved:                LONGINT;                                {   --   }
  1728.         eReserved:                LONGINT;                                {   --   }
  1729.         fReserved:                LONGINT;                                {   --   }
  1730.         recordIDCount:            LONGINT;                                {   -->  }
  1731.         attrTypeCount:            LONGINT;                                {   -->  }
  1732.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the value specified by the starting indices  }
  1733.         padByte:                SInt8;
  1734.         i1Reserved:                INTEGER;                                {   --   }
  1735.         getBuffer:                Ptr;                                    {   -->  }
  1736.         getBufferSize:            LONGINT;                                {   -->  }
  1737.         startingRecordIndex:    LONGINT;                                {   --> start from this record  }
  1738.         startingAttrTypeIndex:    LONGINT;                                {   --> start from this attribute type  }
  1739.         startingAttribute:        Attribute;                                {   --> start from this attribute value  }
  1740.         pReserved:                LONGINT;                                {   --   }
  1741.     END;
  1742.  
  1743. { The Lookup call-back functions are defined as follows: }
  1744.     ForEachLookupRecordIDProcPtr = ProcPtr;  { FUNCTION ForEachLookupRecordID(clientData: LONGINT; (CONST)VAR recordID: RecordID): BOOLEAN; }
  1745.  
  1746.     ForEachLookupRecordIDUPP = UniversalProcPtr;
  1747.     ForEachLookupRecordID                = ForEachLookupRecordIDUPP;
  1748.     ForEachAttrTypeLookupProcPtr = ProcPtr;  { FUNCTION ForEachAttrTypeLookup(clientData: LONGINT; (CONST)VAR attrType: AttributeType; myAttrAccMask: AccessMask): BOOLEAN; }
  1749.  
  1750.     ForEachAttrTypeLookupUPP = UniversalProcPtr;
  1751.     ForEachAttrTypeLookup                = ForEachAttrTypeLookupUPP;
  1752.     ForEachAttrValueProcPtr = ProcPtr;  { FUNCTION ForEachAttrValue(clientData: LONGINT; (CONST)VAR attribute: Attribute): BOOLEAN; }
  1753.  
  1754.     ForEachAttrValueUPP = UniversalProcPtr;
  1755.     ForEachAttrValue                    = ForEachAttrValueUPP;
  1756. {
  1757. LookupParse:
  1758.  
  1759. After a LookupGet call has completed, call LookupParse
  1760. to parse through the buffer that was filled in LookupGet.  The
  1761. toolbox will parse through the buffer and call the appropriate call-back routines
  1762. for each item in the getBuffer.
  1763.  
  1764. 'eachRecordID' will be called each time to return to the client one of the
  1765. RecordIDs from aRecordList.  The clientData parameter that you
  1766. pass in the parameter block will be passed to eachRecordID.
  1767. You are free to put anything in clientData - it is intended to allow
  1768. you some way to match the call-back to the original call (in case, for
  1769. example, you make simultaneous asynchronous LookupGet calls).  If you don't
  1770. want to get a call-back for each RecordID (for example, if you're looking up
  1771. attributes for only one RecordID), pass nil for eachRecordID.
  1772.  
  1773. After forEachLocalRecordIDFunc is called, eachAttrType may be called to pass an
  1774. attribute type (one from attrTypeList) that exists in the record specified
  1775. in the last eachRecordID call.  If you don't want to get a call-back for
  1776. each AttributeType (for example, if you're looking up only one attribute type,
  1777. or you prefer to read the type from the Attribute struct during the eachAttrValue
  1778. call-back routine), pass nil for eachAttrType. However access controls may
  1779. prohibit you from reading some attribute types; in that case eachAttrValue
  1780. may not be called even though the value exists. Hence the client should
  1781. supply this call-back function to see the access controls for each attribute type.
  1782.  
  1783. This will be followed by one or more calls to eachAttrValue, to pass the
  1784. type, tag, and attribute value.  NOTE THIS CHANGE:  you are no longer expected to
  1785. pass a pointer to a buffer in which to put the value.  Now you get a pointer to
  1786. the value, and you can process it within the call-back routine.
  1787. After one or more values are returned, eachAttrType may be called again to pass
  1788. another attribute type that exists in the last-specified RecordID.
  1789.  
  1790. The client should return FALSE from eachRecordID, eachAttrType, and
  1791. eachAttrValue to continue processing of the LookupParse request.  Returning TRUE
  1792. from any call-back will terminate the LookupParse request.
  1793.  
  1794. If LookupGet has failed with kOCEMoreData error, LookupParse will check to make sure that
  1795. ForEachAttributeValueFunc has been called at least once. If so, the client has the option
  1796. to continue from that attribute CreationID (for PAB/ADAP) in the next LookupGet call.
  1797. However, if it was not even called once, then the attribute value may be too big to fit in the
  1798. user's buffer. In this case, lastAttrValueCID (lastAttribute) and attrSize are returned in the
  1799. parse buffer and the call will fail with kOCEMoreAttrValue. However, it is possible that
  1800. ForEachAttributeValue was not called because the user does not have read access to some of
  1801. the attributeTypes in the list, and the buffer was full before even reading the creationID of
  1802. any of the attribute values.  A kOCEMoreData error is returned.
  1803.  
  1804. For synchronous calls, the call-back routine actually runs as part of the same thread
  1805. of execution as the thread that made the LookupParse call.  That means that the
  1806. same low-memory globals, A5, stack, etc. are in effect during the call-back
  1807. that were in effect when the call was made.  Because of this, the call-back
  1808. routine has the same restrictions as the caller of LookupParse:
  1809. if LookupParse was not called from interrupt level, then the call-
  1810. back routine can allocate memory. For asynchronous calls, call-back routine is
  1811. like a ioCompletion except that A5 will be preserved for the application.
  1812. }
  1813.     DirLookupParsePBPtr = ^DirLookupParsePB;
  1814.     DirLookupParsePB = RECORD
  1815.         qLink:                    Ptr;
  1816.         reserved1:                LONGINT;
  1817.         reserved2:                LONGINT;
  1818.         ioCompletion:            DirIOCompletionUPP;
  1819.         ioResult:                OSErr;
  1820.         saveA5:                    LONGINT;
  1821.         reqCode:                INTEGER;
  1822.         reserved:                ARRAY [0..1] OF LONGINT;
  1823.         serverHint:                AddrBlock;
  1824.         dsRefNum:                INTEGER;
  1825.         callID:                    LONGINT;
  1826.         identity:                AuthIdentity;
  1827.         gReserved1:                LONGINT;
  1828.         gReserved2:                LONGINT;
  1829.         gReserved3:                LONGINT;
  1830.         clientData:                LONGINT;
  1831.         aRecordList:            ^RecordIDPtr;                            {   --> must be same from the corresponding Get call  }
  1832.         attrTypeList:            ^AttributeTypePtr;                        {   --> must be same from the corresponding Get call  }
  1833.         cReserved:                LONGINT;                                {   --   }
  1834.         eachRecordID:            ForEachLookupRecordID;                    {   -->  }
  1835.         eachAttrType:            ForEachAttrTypeLookup;                    {   -->  }
  1836.         eachAttrValue:            ForEachAttrValue;                        {   -->  }
  1837.         recordIDCount:            LONGINT;                                {   --> must be same from the corresponding Get call  }
  1838.         attrTypeCount:            LONGINT;                                {   --> must be same from the corresponding Get call  }
  1839.         iReserved:                LONGINT;                                {   --   }
  1840.         getBuffer:                Ptr;                                    {   --> must be same from the corresponding Get call }
  1841.         getBufferSize:            LONGINT;                                {   --> must be same from the corresponding Get call }
  1842.         lastRecordIndex:        LONGINT;                                {  <--  last RecordID processed when parse completed  }
  1843.         lastAttributeIndex:        LONGINT;                                {  <--  last Attribute Type processed when parse completed  }
  1844.         lastAttribute:            Attribute;                                {  <--  last attribute value (with this CreationID) processed when parse completed  }
  1845.         attrSize:                LONGINT;                                {  <--  length of the attribute we did not return  }
  1846.     END;
  1847.  
  1848.  
  1849.  
  1850. { AddAttributeValue }
  1851.     DirAddAttributeValuePBPtr = ^DirAddAttributeValuePB;
  1852.     DirAddAttributeValuePB = RECORD
  1853.         qLink:                    Ptr;
  1854.         reserved1:                LONGINT;
  1855.         reserved2:                LONGINT;
  1856.         ioCompletion:            DirIOCompletionUPP;
  1857.         ioResult:                OSErr;
  1858.         saveA5:                    LONGINT;
  1859.         reqCode:                INTEGER;
  1860.         reserved:                ARRAY [0..1] OF LONGINT;
  1861.         serverHint:                AddrBlock;
  1862.         dsRefNum:                INTEGER;
  1863.         callID:                    LONGINT;
  1864.         identity:                AuthIdentity;
  1865.         gReserved1:                LONGINT;
  1866.         gReserved2:                LONGINT;
  1867.         gReserved3:                LONGINT;
  1868.         clientData:                LONGINT;
  1869.         aRecord:                RecordIDPtr;                            {   -->  }
  1870.         attr:                    AttributePtr;                            {   --> AttributeCreationID returned here  }
  1871.     END;
  1872.  
  1873. {
  1874. aRecord must contain valid PackedRLI and a CreationID.
  1875.  
  1876. Instead of passing type, length, and value in three separate
  1877. fields, we take a pointer to an Attribute structure that contains
  1878. all three, and has room for the AttributeCreationNumber.
  1879. The AttributeCreationID will be returned in the attr itself.
  1880.  
  1881. The AttributeTag tells the catalog service that the attribute is an RString,
  1882. binary, or a RecordID.
  1883. }
  1884. {
  1885. DeleteAttributeType:
  1886. This call is provided so that an existing AttributeType can be deleted.
  1887. If any attribute values exist for this type, they will all be deleted
  1888. (if the user has access rights to delete the values) and then the attribute type
  1889. will be deleted. Otherwise dsAccessDenied error will be returned.
  1890. }
  1891.     DirDeleteAttributeTypePBPtr = ^DirDeleteAttributeTypePB;
  1892.     DirDeleteAttributeTypePB = RECORD
  1893.         qLink:                    Ptr;
  1894.         reserved1:                LONGINT;
  1895.         reserved2:                LONGINT;
  1896.         ioCompletion:            DirIOCompletionUPP;
  1897.         ioResult:                OSErr;
  1898.         saveA5:                    LONGINT;
  1899.         reqCode:                INTEGER;
  1900.         reserved:                ARRAY [0..1] OF LONGINT;
  1901.         serverHint:                AddrBlock;
  1902.         dsRefNum:                INTEGER;
  1903.         callID:                    LONGINT;
  1904.         identity:                AuthIdentity;
  1905.         gReserved1:                LONGINT;
  1906.         gReserved2:                LONGINT;
  1907.         gReserved3:                LONGINT;
  1908.         clientData:                LONGINT;
  1909.         aRecord:                RecordIDPtr;                            {   -->  }
  1910.         attrType:                AttributeTypePtr;                        {   -->  }
  1911.     END;
  1912.  
  1913. {
  1914.     DeleteAttributeValue
  1915. }
  1916.     DirDeleteAttributeValuePBPtr = ^DirDeleteAttributeValuePB;
  1917.     DirDeleteAttributeValuePB = RECORD
  1918.         qLink:                    Ptr;
  1919.         reserved1:                LONGINT;
  1920.         reserved2:                LONGINT;
  1921.         ioCompletion:            DirIOCompletionUPP;
  1922.         ioResult:                OSErr;
  1923.         saveA5:                    LONGINT;
  1924.         reqCode:                INTEGER;
  1925.         reserved:                ARRAY [0..1] OF LONGINT;
  1926.         serverHint:                AddrBlock;
  1927.         dsRefNum:                INTEGER;
  1928.         callID:                    LONGINT;
  1929.         identity:                AuthIdentity;
  1930.         gReserved1:                LONGINT;
  1931.         gReserved2:                LONGINT;
  1932.         gReserved3:                LONGINT;
  1933.         clientData:                LONGINT;
  1934.         aRecord:                RecordIDPtr;                            {   ->  }
  1935.         attr:                    AttributePtr;                            {   ->  }
  1936.     END;
  1937.  
  1938.  
  1939.  
  1940. {
  1941.     ChangeAttributeValue:
  1942.     currentAttr ==> the attribute to be changed. For ADAS and PAB CreationID is
  1943.                     sufficient
  1944.     newAttr     ==> new value for the attribute. For ADAS and PAB 
  1945.                     CreationID field will be set when
  1946.                     the call succeesfully completes
  1947.     
  1948.     aRecord     ==> must contain valid PackedRecordLocationInfo and a CreationID.
  1949.  
  1950.  
  1951.     
  1952. }
  1953.     DirChangeAttributeValuePBPtr = ^DirChangeAttributeValuePB;
  1954.     DirChangeAttributeValuePB = RECORD
  1955.         qLink:                    Ptr;
  1956.         reserved1:                LONGINT;
  1957.         reserved2:                LONGINT;
  1958.         ioCompletion:            DirIOCompletionUPP;
  1959.         ioResult:                OSErr;
  1960.         saveA5:                    LONGINT;
  1961.         reqCode:                INTEGER;
  1962.         reserved:                ARRAY [0..1] OF LONGINT;
  1963.         serverHint:                AddrBlock;
  1964.         dsRefNum:                INTEGER;
  1965.         callID:                    LONGINT;
  1966.         identity:                AuthIdentity;
  1967.         gReserved1:                LONGINT;
  1968.         gReserved2:                LONGINT;
  1969.         gReserved3:                LONGINT;
  1970.         clientData:                LONGINT;
  1971.         aRecord:                RecordIDPtr;                            {   ->  }
  1972.         currentAttr:            AttributePtr;                            {   ->  }
  1973.         newAttr:                AttributePtr;                            {   ->  }
  1974.     END;
  1975.  
  1976.  
  1977. { VerifyAttributeValue }
  1978.     DirVerifyAttributeValuePBPtr = ^DirVerifyAttributeValuePB;
  1979.     DirVerifyAttributeValuePB = RECORD
  1980.         qLink:                    Ptr;
  1981.         reserved1:                LONGINT;
  1982.         reserved2:                LONGINT;
  1983.         ioCompletion:            DirIOCompletionUPP;
  1984.         ioResult:                OSErr;
  1985.         saveA5:                    LONGINT;
  1986.         reqCode:                INTEGER;
  1987.         reserved:                ARRAY [0..1] OF LONGINT;
  1988.         serverHint:                AddrBlock;
  1989.         dsRefNum:                INTEGER;
  1990.         callID:                    LONGINT;
  1991.         identity:                AuthIdentity;
  1992.         gReserved1:                LONGINT;
  1993.         gReserved2:                LONGINT;
  1994.         gReserved3:                LONGINT;
  1995.         clientData:                LONGINT;
  1996.         aRecord:                RecordIDPtr;                            {   -->  }
  1997.         attr:                    AttributePtr;                            {   -->  }
  1998.     END;
  1999.  
  2000. {
  2001. aRecord must contain valid PackedRLI and a CreationID.
  2002.  
  2003. The attribute type and value are passed in the attribute structure.  If the
  2004. attribute CreationID is non-zero, the server will verify that an attribute with
  2005. the specified value and creation number exists in aRecord.  If the attribute
  2006. CreationID is zero, the server will verify the attribute by type and value
  2007. alone, and return the attribute CreationID in the Attribute struct if the
  2008. attribute exists.
  2009. }
  2010.  
  2011. {
  2012. EnumerateAttributeTypesGet:
  2013. The following two calls can be used to enumerate the attribute types present in
  2014. a specified RecordID.  The first, EnumerateAttributeTypesGet, processes the request
  2015. and reads the response into getBuffer, as much as will fit.  A kOCEMoreData error will
  2016. be returned if the buffer was not large enough.  After this call completes, the
  2017. client can call EnumerateAttributeTypesParse (see below).
  2018.  
  2019. The user will able to continue from a startingPoint by setting a startingAttrType.
  2020. Typically, this should be the last value returned in EnumerateAttributeTypesParse call
  2021. when 'kOCEMoreData' is returned.
  2022.  
  2023. If 'includeStartingPoint' is true when a 'startingAttrType' is specified, the starting value
  2024. will be included in the results, if it exists. If this is set to false, this value will not
  2025. be included. AttributeTypes following this type will be returned.
  2026. }
  2027.     DirEnumerateAttributeTypesGetPBPtr = ^DirEnumerateAttributeTypesGetPB;
  2028.     DirEnumerateAttributeTypesGetPB = RECORD
  2029.         qLink:                    Ptr;
  2030.         reserved1:                LONGINT;
  2031.         reserved2:                LONGINT;
  2032.         ioCompletion:            DirIOCompletionUPP;
  2033.         ioResult:                OSErr;
  2034.         saveA5:                    LONGINT;
  2035.         reqCode:                INTEGER;
  2036.         reserved:                ARRAY [0..1] OF LONGINT;
  2037.         serverHint:                AddrBlock;
  2038.         dsRefNum:                INTEGER;
  2039.         callID:                    LONGINT;
  2040.         identity:                AuthIdentity;
  2041.         gReserved1:                LONGINT;
  2042.         gReserved2:                LONGINT;
  2043.         gReserved3:                LONGINT;
  2044.         clientData:                LONGINT;
  2045.         aRecord:                RecordIDPtr;                            {   -->  }
  2046.         startingAttrType:        AttributeTypePtr;                        {   --> starting point  }
  2047.         cReserved:                LONGINT;                                {   --   }
  2048.         dReserved:                LONGINT;                                {   --   }
  2049.         eReserved:                LONGINT;                                {   --   }
  2050.         fReserved:                LONGINT;                                {   --   }
  2051.         gReserved:                LONGINT;                                {   --   }
  2052.         hReserved:                LONGINT;                                {   --   }
  2053.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the attrType specified by starting point  }
  2054.         padByte:                SInt8;
  2055.         i1Reserved:                INTEGER;                                {   --   }
  2056.         getBuffer:                Ptr;                                    {   -->  }
  2057.         getBufferSize:            LONGINT;                                {   -->  }
  2058.     END;
  2059.  
  2060. { The call-back function is defined as follows: }
  2061.     ForEachAttrTypeProcPtr = ProcPtr;  { FUNCTION ForEachAttrType(clientData: LONGINT; (CONST)VAR attrType: AttributeType): BOOLEAN; }
  2062.  
  2063.     ForEachAttrTypeUPP = UniversalProcPtr;
  2064.     ForEachAttrType                        = ForEachAttrTypeUPP;
  2065. {
  2066. EnumerateAttributeTypesParse:
  2067. After an EnumerateAttributeTypesGet call has completed, call EnumerateAttributeTypesParse
  2068. to parse through the buffer that was filled in EnumerateAttributeTypesGet.  The
  2069. toolbox will parse through the buffer and call the call-back routine for
  2070. each attribute type in the getBuffer.
  2071.  
  2072. The client should return false from eachAttrType to continue
  2073. processing of the EnumerateAttributeTypesParse request.  Returning true will
  2074. terminate the EnumerateAttributeTypesParse request.  The clientData parameter that
  2075. you pass in the parameter block will be passed to eachAttrType.
  2076. You are free to put anything in clientData - it is intended to allow
  2077. you some way to match the call-back to the original call (in case, for
  2078. example, you make simultaneous asynchronous calls).
  2079.  
  2080. For synchronous calls, the call-back routine actually runs as part of the same thread
  2081. of execution as the thread that made the EnumerateAttributeTypesParse call.  That means that the
  2082. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2083. that were in effect when the call was made.  Because of this, the call-back
  2084. routine has the same restrictions as the caller of EnumerateAttributeTypesParse.
  2085. If EnumerateAttributeTypesParse was not called from interrupt level, then the call-
  2086. back routine can allocate memory. For asynchronous calls, call-back routine is
  2087. like a ioCompletion except that A5 will be preserved for the application.
  2088. }
  2089.     DirEnumerateAttributeTypesParsePBPtr = ^DirEnumerateAttributeTypesParsePB;
  2090.     DirEnumerateAttributeTypesParsePB = RECORD
  2091.         qLink:                    Ptr;
  2092.         reserved1:                LONGINT;
  2093.         reserved2:                LONGINT;
  2094.         ioCompletion:            DirIOCompletionUPP;
  2095.         ioResult:                OSErr;
  2096.         saveA5:                    LONGINT;
  2097.         reqCode:                INTEGER;
  2098.         reserved:                ARRAY [0..1] OF LONGINT;
  2099.         serverHint:                AddrBlock;
  2100.         dsRefNum:                INTEGER;
  2101.         callID:                    LONGINT;
  2102.         identity:                AuthIdentity;
  2103.         gReserved1:                LONGINT;
  2104.         gReserved2:                LONGINT;
  2105.         gReserved3:                LONGINT;
  2106.         clientData:                LONGINT;
  2107.         aRecord:                RecordIDPtr;                            {   --> Same as DirEnumerateAttributeTypesGetPB  }
  2108.         bReserved:                LONGINT;                                {   --   }
  2109.         cReserved:                LONGINT;                                {   --   }
  2110.         dReserved:                LONGINT;                                {   --   }
  2111.         eachAttrType:            ForEachAttrType;                        {   -->  }
  2112.         fReserved:                LONGINT;                                {   --   }
  2113.         gReserved:                LONGINT;                                {   --   }
  2114.         hReserved:                LONGINT;                                {   --   }
  2115.         iReserved:                LONGINT;                                {   --   }
  2116.         getBuffer:                Ptr;                                    {   -->  }
  2117.         getBufferSize:            LONGINT;                                {   -->  }
  2118.     END;
  2119.  
  2120. {
  2121. DirAbort:
  2122. With this call a user will able to abort an outstanding catalog service call.
  2123. A user must pass a pointer to the parameter block for the outstanding call.
  2124. In the current version of the product, the toolbox will process this call
  2125. for NetSearchADAPDirectoriesGet or FindADAPDirectoryByNetSearch calls and if possible
  2126. it will abort. For other calls for ADAP and PAB this will return 'daAbortFailErr'.
  2127. For CSAM catalogs, this call will be passed to the corresponding CSAM driver.
  2128. The CSAM driver may process this call or may return 'daAbortFailErr'. This call can
  2129. be called only in synchronous mode. Since the abort call makes references to fields in
  2130. the pb associated with the original call, this pb must not be disposed or or altered if
  2131. the original call completes before the abort call has completed.
  2132. }
  2133.     DirAbortPBPtr = ^DirAbortPB;
  2134.     DirAbortPB = RECORD
  2135.         qLink:                    Ptr;
  2136.         reserved1:                LONGINT;
  2137.         reserved2:                LONGINT;
  2138.         ioCompletion:            DirIOCompletionUPP;
  2139.         ioResult:                OSErr;
  2140.         saveA5:                    LONGINT;
  2141.         reqCode:                INTEGER;
  2142.         reserved:                ARRAY [0..1] OF LONGINT;
  2143.         serverHint:                AddrBlock;
  2144.         dsRefNum:                INTEGER;
  2145.         callID:                    LONGINT;
  2146.         identity:                AuthIdentity;
  2147.         gReserved1:                LONGINT;
  2148.         gReserved2:                LONGINT;
  2149.         gReserved3:                LONGINT;
  2150.         clientData:                LONGINT;
  2151.         pb:                        DirParamBlockPtr;                        {   --> pb for the call which must be aborted  }
  2152.     END;
  2153.  
  2154.  
  2155. {
  2156. AddPseudonym:
  2157. An alternate name and type can be added to a given record. If allowDuplicate
  2158. is set the name and type will be added even if the same name and type already
  2159. exists.
  2160. }
  2161.     DirAddPseudonymPBPtr = ^DirAddPseudonymPB;
  2162.     DirAddPseudonymPB = RECORD
  2163.         qLink:                    Ptr;
  2164.         reserved1:                LONGINT;
  2165.         reserved2:                LONGINT;
  2166.         ioCompletion:            DirIOCompletionUPP;
  2167.         ioResult:                OSErr;
  2168.         saveA5:                    LONGINT;
  2169.         reqCode:                INTEGER;
  2170.         reserved:                ARRAY [0..1] OF LONGINT;
  2171.         serverHint:                AddrBlock;
  2172.         dsRefNum:                INTEGER;
  2173.         callID:                    LONGINT;
  2174.         identity:                AuthIdentity;
  2175.         gReserved1:                LONGINT;
  2176.         gReserved2:                LONGINT;
  2177.         gReserved3:                LONGINT;
  2178.         clientData:                LONGINT;
  2179.         aRecord:                RecordIDPtr;                            {   --> RecordID to which pseudonym is to be added  }
  2180.         pseudonymName:            RStringPtr;                                {   --> new name to be added as pseudonym  }
  2181.         pseudonymType:            RStringPtr;                                {   --> new name to be added as pseudonym  }
  2182.         allowDuplicate:            BOOLEAN;                                {   -->  }
  2183.         filler1:                BOOLEAN;
  2184.     END;
  2185.  
  2186. {
  2187. DeletePseudonym:
  2188. An alternate name and type for a given record can be deleted.
  2189. }
  2190.     DirDeletePseudonymPBPtr = ^DirDeletePseudonymPB;
  2191.     DirDeletePseudonymPB = RECORD
  2192.         qLink:                    Ptr;
  2193.         reserved1:                LONGINT;
  2194.         reserved2:                LONGINT;
  2195.         ioCompletion:            DirIOCompletionUPP;
  2196.         ioResult:                OSErr;
  2197.         saveA5:                    LONGINT;
  2198.         reqCode:                INTEGER;
  2199.         reserved:                ARRAY [0..1] OF LONGINT;
  2200.         serverHint:                AddrBlock;
  2201.         dsRefNum:                INTEGER;
  2202.         callID:                    LONGINT;
  2203.         identity:                AuthIdentity;
  2204.         gReserved1:                LONGINT;
  2205.         gReserved2:                LONGINT;
  2206.         gReserved3:                LONGINT;
  2207.         clientData:                LONGINT;
  2208.         aRecord:                RecordIDPtr;                            {   --> RecordID to which pseudonym to be added  }
  2209.         pseudonymName:            RStringPtr;                                {   --> pseudonymName to be deleted  }
  2210.         pseudonymType:            RStringPtr;                                {   --> pseudonymType to be deleted  }
  2211.     END;
  2212.  
  2213.  
  2214. {
  2215.     AddAlias:
  2216.     This call can be used to create an alias  record. The alias
  2217.     can be created either in the same or different cluster. ADAS will not support
  2218.     this call for this release. A new catalog capability flag 'kSupportsAlias' will indicate
  2219.     if the catalog supports this call. PAB's will support this call. For the PAB implementation,
  2220.     this call will create a record with the name and type specified an aRecord.
  2221.     This call works exactly like AddRecord.
  2222.     If 'allowDuplicate' is false and another record with same name and type already exists
  2223.     'daNoDupAllowed' error will be returned.
  2224. }
  2225.     DirAddAliasPBPtr = ^DirAddAliasPB;
  2226.     DirAddAliasPB = RECORD
  2227.         qLink:                    Ptr;
  2228.         reserved1:                LONGINT;
  2229.         reserved2:                LONGINT;
  2230.         ioCompletion:            DirIOCompletionUPP;
  2231.         ioResult:                OSErr;
  2232.         saveA5:                    LONGINT;
  2233.         reqCode:                INTEGER;
  2234.         reserved:                ARRAY [0..1] OF LONGINT;
  2235.         serverHint:                AddrBlock;
  2236.         dsRefNum:                INTEGER;
  2237.         callID:                    LONGINT;
  2238.         identity:                AuthIdentity;
  2239.         gReserved1:                LONGINT;
  2240.         gReserved2:                LONGINT;
  2241.         gReserved3:                LONGINT;
  2242.         clientData:                LONGINT;
  2243.         aRecord:                RecordIDPtr;                            {   ->  }
  2244.         allowDuplicate:            BOOLEAN;                                {   ->  }
  2245.         filler1:                BOOLEAN;
  2246.     END;
  2247.  
  2248. {
  2249. DirFindValue:
  2250. This call can be used to find the occurrence of a value. The value
  2251. to be matched is passed in the buffer 'matchingData' field. The current
  2252. ADAP/PAB implementation will match a maximum of 32 bytes of data.
  2253. For attribute values in the PAB/ADAP implementation, only the first 32 bytes will
  2254. be used for comparing the occurrence of data. Search can be restricted to
  2255. a particular record and/or attribute type by specifying 'aRecord' or 'aType'.
  2256. After finding one occurrence, 'startingRecord' and 'startingAttribute'
  2257. can be specified to find the next occurrence of the same value.
  2258. 'sortDirection' can be specified with starting values to search forward or backward.
  2259. When a matching value is found, the 'recordFound' indicates the reccordID in which the
  2260. data occurrence was found, 'attributeFound' indicates the attribute with in which the
  2261. matching data was found. ADAP/PAB implementation returns only the type and creationID of
  2262. attributes. Catalogs which don't support creationIDs may return the
  2263. complete value; hence this call may need a buffer to hold the data. For ADAP/PAB implementations
  2264. the user has to make a DirLookup call to get the actual data. 'recordFound' and
  2265. 'attributeFound' can be used to initialize 'startingRecord' and 'startingAttribute' to
  2266. find the next occurrence of the value.
  2267. }
  2268.     DirFindValuePBPtr = ^DirFindValuePB;
  2269.     DirFindValuePB = RECORD
  2270.         qLink:                    Ptr;
  2271.         reserved1:                LONGINT;
  2272.         reserved2:                LONGINT;
  2273.         ioCompletion:            DirIOCompletionUPP;
  2274.         ioResult:                OSErr;
  2275.         saveA5:                    LONGINT;
  2276.         reqCode:                INTEGER;
  2277.         reserved:                ARRAY [0..1] OF LONGINT;
  2278.         serverHint:                AddrBlock;
  2279.         dsRefNum:                INTEGER;
  2280.         callID:                    LONGINT;
  2281.         identity:                AuthIdentity;
  2282.         gReserved1:                LONGINT;
  2283.         gReserved2:                LONGINT;
  2284.         gReserved3:                LONGINT;
  2285.         clientData:                LONGINT;
  2286.         aRLI:                    PackedRLIPtr;                            {   --> an RLI specifying the cluster to be enumerated  }
  2287.         aRecord:                LocalRecordIDPtr;                        {   --> if not nil, look only in this record  }
  2288.         attrType:                AttributeTypePtr;                        {   --> if not nil, look only in this attribute type  }
  2289.         startingRecord:            LocalRecordIDPtr;                        {   --> record in which to start searching  }
  2290.         startingAttribute:        AttributePtr;                            {   --> attribute in which to start searching  }
  2291.         recordFound:            LocalRecordIDPtr;                        {  <--  record in which data was found  }
  2292.         attributeFound:            Attribute;                                {  <--  attribute in which data was found  }
  2293.         matchSize:                LONGINT;                                {   --> length of matching bytes  }
  2294.         matchingData:            Ptr;                                    {   --> data bytes to be matched in search  }
  2295.         sortDirection:            DirSortDirection;                        {   --> sort direction (forwards or backwards)  }
  2296.     END;
  2297.  
  2298.  
  2299.  
  2300. {
  2301. EnumeratePseudonymGet:
  2302. This call can be used to enumerate the existing pseudonyms for
  2303. a given record specified in 'aRecord'. A starting point can be specified
  2304. by 'startingName' and 'startingType'. If the 'includeStartingPoint' boolean
  2305. is true and a starting point is specified, the name specified by startingName
  2306. and startingType also is returned in the results, if it exists. If this is set to false,
  2307. the pseudonym in startingName and Type is not included.
  2308. Pseudonyms returned in the 'getBuffer' can be extracted by making an
  2309. EnumeratePseudonymParse call. The results will consist of a RecordID with the
  2310. name and type of the pseudonym. If the buffer could not hold all the results, then
  2311. 'kOCEMoreData' error will be returned. The user will be able to continue the call by
  2312. using the last result returned as starting point for the next call.
  2313. }
  2314.     DirEnumeratePseudonymGetPBPtr = ^DirEnumeratePseudonymGetPB;
  2315.     DirEnumeratePseudonymGetPB = RECORD
  2316.         qLink:                    Ptr;
  2317.         reserved1:                LONGINT;
  2318.         reserved2:                LONGINT;
  2319.         ioCompletion:            DirIOCompletionUPP;
  2320.         ioResult:                OSErr;
  2321.         saveA5:                    LONGINT;
  2322.         reqCode:                INTEGER;
  2323.         reserved:                ARRAY [0..1] OF LONGINT;
  2324.         serverHint:                AddrBlock;
  2325.         dsRefNum:                INTEGER;
  2326.         callID:                    LONGINT;
  2327.         identity:                AuthIdentity;
  2328.         gReserved1:                LONGINT;
  2329.         gReserved2:                LONGINT;
  2330.         gReserved3:                LONGINT;
  2331.         clientData:                LONGINT;
  2332.         aRecord:                RecordIDPtr;                            {   -->  }
  2333.         startingName:            RStringPtr;                                {   -->  }
  2334.         startingType:            RStringPtr;                                {   -->  }
  2335.         dReserved:                LONGINT;                                {   --   }
  2336.         eReserved:                LONGINT;                                {   --   }
  2337.         fReserved:                LONGINT;                                {   --   }
  2338.         gReserved:                LONGINT;                                {   --   }
  2339.         hReserved:                LONGINT;                                {   --   }
  2340.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the Pseudonym specified by starting point will be included  }
  2341.         padByte:                SInt8;
  2342.         i1Reserved:                INTEGER;                                {   --   }
  2343.         getBuffer:                Ptr;                                    {   -->  }
  2344.         getBufferSize:            LONGINT;                                {   -->  }
  2345.     END;
  2346.  
  2347. { The call-back function is defined as follows: }
  2348.     ForEachRecordIDProcPtr = ProcPtr;  { FUNCTION ForEachRecordID(clientData: LONGINT; (CONST)VAR recordID: RecordID): BOOLEAN; }
  2349.  
  2350.     ForEachRecordIDUPP = UniversalProcPtr;
  2351.     ForEachRecordID                        = ForEachRecordIDUPP;
  2352. {
  2353. EnumeratePseudonymParse:
  2354. The pseudonyms returned in the 'getBuffer' from the EnumeratePseudonymGet call
  2355. can be extracted by using the EnumeratePseudonymParse call. 'eachRecordID'
  2356. will be called for each pseudonym.
  2357.  
  2358. Returning true from any call-back will terminate the EnumeratePseudonymParse call.
  2359.  
  2360. For synchronous calls, the call-back routine actually runs as part of the same thread
  2361. of execution as the thread that made the EnumeratePseudonymParse call.  That means that the
  2362. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2363. that were in effect when the call was made.  Because of this, the call-back
  2364. routine has the same restrictions as the caller of EnumeratePseudonymParse:
  2365. if EnumeratePseudonymParse was not called from interrupt level, then the call-
  2366. back routine can allocate memory. For asynchronous calls, call-back routine is
  2367. like a ioCompletion except that A5 will be preserved for the application.
  2368. }
  2369.     DirEnumeratePseudonymParsePBPtr = ^DirEnumeratePseudonymParsePB;
  2370.     DirEnumeratePseudonymParsePB = RECORD
  2371.         qLink:                    Ptr;
  2372.         reserved1:                LONGINT;
  2373.         reserved2:                LONGINT;
  2374.         ioCompletion:            DirIOCompletionUPP;
  2375.         ioResult:                OSErr;
  2376.         saveA5:                    LONGINT;
  2377.         reqCode:                INTEGER;
  2378.         reserved:                ARRAY [0..1] OF LONGINT;
  2379.         serverHint:                AddrBlock;
  2380.         dsRefNum:                INTEGER;
  2381.         callID:                    LONGINT;
  2382.         identity:                AuthIdentity;
  2383.         gReserved1:                LONGINT;
  2384.         gReserved2:                LONGINT;
  2385.         gReserved3:                LONGINT;
  2386.         clientData:                LONGINT;
  2387.         aRecord:                RecordIDPtr;                            {   --> same as DirEnumerateAliasesGetPB  }
  2388.         bReserved:                LONGINT;                                {   --   }
  2389.         cReserved:                LONGINT;                                {   --   }
  2390.         eachRecordID:            ForEachRecordID;                        {   -->  }
  2391.         eReserved:                LONGINT;                                {   --   }
  2392.         fReserved:                LONGINT;                                {   --   }
  2393.         gReserved:                LONGINT;                                {   --   }
  2394.         hReserved:                LONGINT;                                {   --   }
  2395.         iReserved:                LONGINT;                                {   --   }
  2396.         getBuffer:                Ptr;                                    {   -->  }
  2397.         getBufferSize:            LONGINT;                                {   -->  }
  2398.     END;
  2399.  
  2400.  
  2401.  
  2402. { GetNameAndType }
  2403.     DirGetNameAndTypePBPtr = ^DirGetNameAndTypePB;
  2404.     DirGetNameAndTypePB = RECORD
  2405.         qLink:                    Ptr;
  2406.         reserved1:                LONGINT;
  2407.         reserved2:                LONGINT;
  2408.         ioCompletion:            DirIOCompletionUPP;
  2409.         ioResult:                OSErr;
  2410.         saveA5:                    LONGINT;
  2411.         reqCode:                INTEGER;
  2412.         reserved:                ARRAY [0..1] OF LONGINT;
  2413.         serverHint:                AddrBlock;
  2414.         dsRefNum:                INTEGER;
  2415.         callID:                    LONGINT;
  2416.         identity:                AuthIdentity;
  2417.         gReserved1:                LONGINT;
  2418.         gReserved2:                LONGINT;
  2419.         gReserved3:                LONGINT;
  2420.         clientData:                LONGINT;
  2421.         aRecord:                RecordIDPtr;                            {   -->  }
  2422.     END;
  2423.  
  2424. {
  2425. aRecord must contain valid RLI and a CreationID.  It
  2426. must also contain pointers to maximum-length RStrings (name and type fields)
  2427. in which will be returned the record's distinguished name and type.
  2428. }
  2429.  
  2430. {
  2431. SetNameAndType:
  2432. This call can be used to change a name and type for a record. The record
  2433. to be renamed is specified using 'aRecord'.
  2434. 'newName' and 'newType' indicate the name and type to be set.
  2435. 'allowDuplicate' if true indicates that name is to be set even if another
  2436. name and type exactly matches the newName and newType specified.
  2437.  
  2438. 'newName' and 'newType' are required since the catalogs not supporting
  2439. CreationID require name and type fields in the recordID to identify a given
  2440. record.
  2441. }
  2442.     DirSetNameAndTypePBPtr = ^DirSetNameAndTypePB;
  2443.     DirSetNameAndTypePB = RECORD
  2444.         qLink:                    Ptr;
  2445.         reserved1:                LONGINT;
  2446.         reserved2:                LONGINT;
  2447.         ioCompletion:            DirIOCompletionUPP;
  2448.         ioResult:                OSErr;
  2449.         saveA5:                    LONGINT;
  2450.         reqCode:                INTEGER;
  2451.         reserved:                ARRAY [0..1] OF LONGINT;
  2452.         serverHint:                AddrBlock;
  2453.         dsRefNum:                INTEGER;
  2454.         callID:                    LONGINT;
  2455.         identity:                AuthIdentity;
  2456.         gReserved1:                LONGINT;
  2457.         gReserved2:                LONGINT;
  2458.         gReserved3:                LONGINT;
  2459.         clientData:                LONGINT;
  2460.         aRecord:                RecordIDPtr;                            {   -->  }
  2461.         allowDuplicate:            BOOLEAN;                                {   -->  }
  2462.         padByte:                SInt8;
  2463.         newName:                RStringPtr;                                {   --> new name for the record  }
  2464.         newType:                RStringPtr;                                {   --> new type for the record  }
  2465.     END;
  2466.  
  2467.  
  2468.  
  2469.  
  2470. {
  2471. DirGetMetaRecordInfo: This call can be made to obtain
  2472. the MetaRecordInfo for a given record. Information returned
  2473. is 16 bytes of OPAQUE information about the record.
  2474. }
  2475.     DirGetRecordMetaInfoPBPtr = ^DirGetRecordMetaInfoPB;
  2476.     DirGetRecordMetaInfoPB = RECORD
  2477.         qLink:                    Ptr;
  2478.         reserved1:                LONGINT;
  2479.         reserved2:                LONGINT;
  2480.         ioCompletion:            DirIOCompletionUPP;
  2481.         ioResult:                OSErr;
  2482.         saveA5:                    LONGINT;
  2483.         reqCode:                INTEGER;
  2484.         reserved:                ARRAY [0..1] OF LONGINT;
  2485.         serverHint:                AddrBlock;
  2486.         dsRefNum:                INTEGER;
  2487.         callID:                    LONGINT;
  2488.         identity:                AuthIdentity;
  2489.         gReserved1:                LONGINT;
  2490.         gReserved2:                LONGINT;
  2491.         gReserved3:                LONGINT;
  2492.         clientData:                LONGINT;
  2493.         aRecord:                RecordIDPtr;                            {   -->  }
  2494.         metaInfo:                DirMetaInfo;                            {  <--   }
  2495.     END;
  2496.  
  2497.  
  2498. {
  2499. DirGetDNodeMetaInfo: This call can be made to obtain
  2500. the DNodeMetaInfo for a given Packed RLI. Information returned
  2501. is 16 bytes of OPAQUE information about the DNode.
  2502. }
  2503.     DirGetDNodeMetaInfoPBPtr = ^DirGetDNodeMetaInfoPB;
  2504.     DirGetDNodeMetaInfoPB = RECORD
  2505.         qLink:                    Ptr;
  2506.         reserved1:                LONGINT;
  2507.         reserved2:                LONGINT;
  2508.         ioCompletion:            DirIOCompletionUPP;
  2509.         ioResult:                OSErr;
  2510.         saveA5:                    LONGINT;
  2511.         reqCode:                INTEGER;
  2512.         reserved:                ARRAY [0..1] OF LONGINT;
  2513.         serverHint:                AddrBlock;
  2514.         dsRefNum:                INTEGER;
  2515.         callID:                    LONGINT;
  2516.         identity:                AuthIdentity;
  2517.         gReserved1:                LONGINT;
  2518.         gReserved2:                LONGINT;
  2519.         gReserved3:                LONGINT;
  2520.         clientData:                LONGINT;
  2521.         pRLI:                    PackedRLIPtr;                            {   -->  }
  2522.         metaInfo:                DirMetaInfo;                            {  <--   }
  2523.     END;
  2524.  
  2525.  
  2526. {
  2527. EnumerateDirectoriesGet:
  2528. A user can enumerate all the catalogs installed. This includes installed
  2529. ADAP and CSAM catalogs. The user can specify a signature as input to restrict
  2530. the results. kDirADAPKind will return only ADAP catalogs, kDirDSAMKind
  2531. will return all CSAM catalogs. kDirAllKinds will get both ADAP & CSAM catalogs.
  2532. A specific signature (e.g. X.500) may be used to get catalogs with an X.500 signature.
  2533. The information for each catalog returned will have directoryName, discriminator and features.
  2534.  
  2535. If the user receives 'noErr' or 'kOCEMoreData', the buffer will contain valid results. A user
  2536. can extract the results in the 'getBuffer' by making an DirEnumerateDirectories call.
  2537.  
  2538. If 'kOCEMoreData' is received, the user can continue enumeration by using the last catalog and
  2539. discriminator as startingDirectoryName and staringDirDiscriminator in the next call.
  2540.  
  2541. If 'includeStartingPoint' is true and a starting point is specified,
  2542. the staring point will be returned in the result. If false, it is not included.
  2543. }
  2544.     DirEnumerateDirectoriesGetPBPtr = ^DirEnumerateDirectoriesGetPB;
  2545.     DirEnumerateDirectoriesGetPB = RECORD
  2546.         qLink:                    Ptr;
  2547.         reserved1:                LONGINT;
  2548.         reserved2:                LONGINT;
  2549.         ioCompletion:            DirIOCompletionUPP;
  2550.         ioResult:                OSErr;
  2551.         saveA5:                    LONGINT;
  2552.         reqCode:                INTEGER;
  2553.         reserved:                ARRAY [0..1] OF LONGINT;
  2554.         serverHint:                AddrBlock;
  2555.         dsRefNum:                INTEGER;
  2556.         callID:                    LONGINT;
  2557.         identity:                AuthIdentity;
  2558.         gReserved1:                LONGINT;
  2559.         gReserved2:                LONGINT;
  2560.         gReserved3:                LONGINT;
  2561.         clientData:                LONGINT;
  2562.         directoryKind:            OCEDirectoryKind;                        {   --> enumerate catalogs bearing this signature  }
  2563.         startingDirectoryName:    DirectoryNamePtr;                        {   --> staring catalog name  }
  2564.         startingDirDiscriminator: DirDiscriminator;                        {   --> staring catalog discriminator  }
  2565.         eReserved:                LONGINT;                                {   --   }
  2566.         fReserved:                LONGINT;                                {   --   }
  2567.         gReserved:                LONGINT;                                {   --   }
  2568.         hReserved:                LONGINT;                                {   --   }
  2569.         includeStartingPoint:    BOOLEAN;                                {   --> if true return the catalog specified by starting point  }
  2570.         padByte:                SInt8;
  2571.         i1Reserved:                INTEGER;                                {   --   }
  2572.         getBuffer:                Ptr;                                    {   -->  }
  2573.         getBufferSize:            LONGINT;                                {   -->  }
  2574.     END;
  2575.  
  2576.  
  2577.  
  2578.     ForEachDirectoryProcPtr = ProcPtr;  { FUNCTION ForEachDirectory(clientData: LONGINT; (CONST)VAR dirName: DirectoryName; (CONST)VAR discriminator: DirDiscriminator; features: DirGestalt): BOOLEAN; }
  2579.  
  2580.     ForEachDirectoryUPP = UniversalProcPtr;
  2581.     ForEachDirectory                    = ForEachDirectoryUPP;
  2582. {
  2583. EnumerateDirectoriesParse:
  2584. The catalog info returned in 'getBuffer' from the EnumerateDirectoriesGet call
  2585. can be extracted using the EnumerateDirectoriesParse call. 'eachDirectory' will
  2586. be called for each catalog.
  2587.  
  2588. Returning true from any call-back will terminate the EnumerateDirectoriesParse call.
  2589.  
  2590. For synchronous calls, the call-back routine actually runs as part of the same thread
  2591. of execution as the thread that made the EnumerateDirectoriesParse call.  That means that the
  2592. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2593. that were in effect when the call was made.  Because of this, the call-back
  2594. routine has the same restrictions as the caller of EnumerateDirectoriesParse:
  2595. if EnumerateDirectoriesParse was not called from interrupt level, then the call-
  2596. back routine can allocate memory. For asynchronous calls, call-back routine is
  2597. like a ioCompletion except that A5 will be preserved for the application.
  2598.  
  2599. eachDirectory will be called each time to return to the client a
  2600. DirectoryName, DirDiscriminator, and features for that catalog.
  2601. }
  2602.     DirEnumerateDirectoriesParsePBPtr = ^DirEnumerateDirectoriesParsePB;
  2603.     DirEnumerateDirectoriesParsePB = RECORD
  2604.         qLink:                    Ptr;
  2605.         reserved1:                LONGINT;
  2606.         reserved2:                LONGINT;
  2607.         ioCompletion:            DirIOCompletionUPP;
  2608.         ioResult:                OSErr;
  2609.         saveA5:                    LONGINT;
  2610.         reqCode:                INTEGER;
  2611.         reserved:                ARRAY [0..1] OF LONGINT;
  2612.         serverHint:                AddrBlock;
  2613.         dsRefNum:                INTEGER;
  2614.         callID:                    LONGINT;
  2615.         identity:                AuthIdentity;
  2616.         gReserved1:                LONGINT;
  2617.         gReserved2:                LONGINT;
  2618.         gReserved3:                LONGINT;
  2619.         clientData:                LONGINT;
  2620.         aReserved:                LONGINT;                                {   --   }
  2621.         bReserved:                LONGINT;                                {   --   }
  2622.         cReserved:                LONGINT;                                {   --   }
  2623.         dReserved:                LONGINT;                                {   --   }
  2624.         eachDirectory:            ForEachDirectory;                        {   -->  }
  2625.         fReserved:                LONGINT;                                {   --   }
  2626.         gReserved:                LONGINT;                                {   --   }
  2627.         hReserved:                LONGINT;                                {   --   }
  2628.         iReserved:                LONGINT;                                {   --   }
  2629.         getBuffer:                Ptr;                                    {   -->  }
  2630.         getBufferSize:            LONGINT;                                {   -->  }
  2631.     END;
  2632.  
  2633.  
  2634. {
  2635. The Following five call are specific to ADAP Catalogs. Toolbox
  2636. remembers a list of catalogs across boots. If any catalog service
  2637. call is intended for a ADAP catalog, then it must be in the list.
  2638. In order for managing this list, A client (Probably DE will use these
  2639. calls.
  2640. DirAddADAPDirectoryPB: Add a new ADAP catalog to the list.
  2641. DirRemoveADAPDirectory: Remove a ADAP catalog from the list.
  2642. DirNetSearchADAPDirectoriesGet:   search an internet for adas catalogs.
  2643. DirNetSearchADAPDirectoriesParse: extract the results obtained NetSearchADAPDirectoriesGet.
  2644. DirFindADAPDirectoryByNetSearch: Find a specified catalog through net search.
  2645. }
  2646. {
  2647. NetSearchADAPDirectoriesGet:
  2648. This call can be used to make a network wide search for finding ADAP catalogs.
  2649. This call will be supported only by 'ADAP' and involve highly expensive
  2650. network operations, so the user is advised to use utmost discretion before
  2651. making this call. The results will be collected in the 'getbuffer' and can be
  2652. extracted using NetSearchADAPDirectoriesParse call. The directoryName,
  2653. the directoryDiscriminator, features and serverHint (AppleTalk address for
  2654. a PathFinder serving that catalog) are collected for each catalog found
  2655. on the network. If buffer is too small to hold all the catalogs found on
  2656. the network, a 'kOCEMoreData' error will be returned.
  2657. }
  2658.     DirNetSearchADAPDirectoriesGetPBPtr = ^DirNetSearchADAPDirectoriesGetPB;
  2659.     DirNetSearchADAPDirectoriesGetPB = RECORD
  2660.         qLink:                    Ptr;
  2661.         reserved1:                LONGINT;
  2662.         reserved2:                LONGINT;
  2663.         ioCompletion:            DirIOCompletionUPP;
  2664.         ioResult:                OSErr;
  2665.         saveA5:                    LONGINT;
  2666.         reqCode:                INTEGER;
  2667.         reserved:                ARRAY [0..1] OF LONGINT;
  2668.         serverHint:                AddrBlock;
  2669.         dsRefNum:                INTEGER;
  2670.         callID:                    LONGINT;
  2671.         identity:                AuthIdentity;
  2672.         gReserved1:                LONGINT;
  2673.         gReserved2:                LONGINT;
  2674.         gReserved3:                LONGINT;
  2675.         clientData:                LONGINT;
  2676.         getBuffer:                Ptr;                                    {   -->  }
  2677.         getBufferSize:            LONGINT;                                {   -->  }
  2678.         cReserved:                LONGINT;                                {   --   }
  2679.     END;
  2680.  
  2681.     ForEachADAPDirectoryProcPtr = ProcPtr;  { FUNCTION ForEachADAPDirectory(clientData: LONGINT; (CONST)VAR dirName: DirectoryName; (CONST)VAR discriminator: DirDiscriminator; features: DirGestalt; serverHint: AddrBlock): BOOLEAN; }
  2682.  
  2683.     ForEachADAPDirectoryUPP = UniversalProcPtr;
  2684.     ForEachADAPDirectory                = ForEachADAPDirectoryUPP;
  2685. {
  2686. DirNetSearchADAPDirectoriesParse:
  2687. This call can be used to extract the results obtained in the 'getBuffer'.
  2688. The directoryName, directoryDiscriminator, features and
  2689. serverHint (AppleTalk address for a PathFinder serving that catalog) are
  2690. returned in each call-back. These values may be used to make an
  2691. AddADAPDirectory call.
  2692.  
  2693. Returning TRUE from any call-back will terminate the NetSearchADAPDirectoriesParse request.
  2694.  
  2695. For synchronous calls, the call-back routine actually runs as part of the same thread
  2696. of execution as the thread that made the DirNetSearchADAPDirectoriesParse call. That means that the
  2697. same low-memory globals, A5, stack, etc. are in effect during the call-back
  2698. that were in effect when the call was made.  Because of this, the call-back
  2699. routine has the same restrictions as the caller of DirNetSearchADAPDirectoriesParse:
  2700. if DirNetSearchADAPDirectoriesParse was not called from interrupt level, then the call-
  2701. back routine can allocate memory. For asynchronous calls, call-back routine is
  2702. like a ioCompletion except that A5 will be preserved for the application.
  2703. }
  2704.     DirNetSearchADAPDirectoriesParsePBPtr = ^DirNetSearchADAPDirectoriesParsePB;
  2705.     DirNetSearchADAPDirectoriesParsePB = RECORD
  2706.         qLink:                    Ptr;
  2707.         reserved1:                LONGINT;
  2708.         reserved2:                LONGINT;
  2709.         ioCompletion:            DirIOCompletionUPP;
  2710.         ioResult:                OSErr;
  2711.         saveA5:                    LONGINT;
  2712.         reqCode:                INTEGER;
  2713.         reserved:                ARRAY [0..1] OF LONGINT;
  2714.         serverHint:                AddrBlock;
  2715.         dsRefNum:                INTEGER;
  2716.         callID:                    LONGINT;
  2717.         identity:                AuthIdentity;
  2718.         gReserved1:                LONGINT;
  2719.         gReserved2:                LONGINT;
  2720.         gReserved3:                LONGINT;
  2721.         clientData:                LONGINT;
  2722.         getBuffer:                Ptr;                                    {   -->  }
  2723.         getBufferSize:            LONGINT;                                {   -->  }
  2724.         eachADAPDirectory:        ForEachADAPDirectory;                    {   -->  }
  2725.     END;
  2726.  
  2727. {
  2728. DirFindADAPDirectoryByNetSearch:
  2729. This call can be used to make a network wide search to find an ADAP catalog.
  2730. This call will be supported only by 'ADAP' and involves highly expensive
  2731. network operations, so the user is advised to use utmost discretion before
  2732. making this call. The catalog is specified using directoryName and discriminator.
  2733. If 'addToOCESetup' is true, the catalog will be automatically added to the setup
  2734. list and will be visible through the EnumerateDirectories call and also
  2735. also a creationID to the directoryRecord will be returned.
  2736. If this parameter is set to 'false', the catalog will be added to temporary list
  2737. and will be available for making other catalog service calls. The catalogs
  2738. which are not in the preference catalog list will not be visible through the
  2739. EnumerateDirectories call.
  2740. }
  2741.     DirFindADAPDirectoryByNetSearchPBPtr = ^DirFindADAPDirectoryByNetSearchPB;
  2742.     DirFindADAPDirectoryByNetSearchPB = RECORD
  2743.         qLink:                    Ptr;
  2744.         reserved1:                LONGINT;
  2745.         reserved2:                LONGINT;
  2746.         ioCompletion:            DirIOCompletionUPP;
  2747.         ioResult:                OSErr;
  2748.         saveA5:                    LONGINT;
  2749.         reqCode:                INTEGER;
  2750.         reserved:                ARRAY [0..1] OF LONGINT;
  2751.         serverHint:                AddrBlock;
  2752.         dsRefNum:                INTEGER;
  2753.         callID:                    LONGINT;
  2754.         identity:                AuthIdentity;
  2755.         gReserved1:                LONGINT;
  2756.         gReserved2:                LONGINT;
  2757.         gReserved3:                LONGINT;
  2758.         clientData:                LONGINT;
  2759.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2760.         discriminator:            DirDiscriminator;                        {   --> discriminate between dup catalog names  }
  2761.         addToOCESetup:            BOOLEAN;                                {   --> add this catalog to OCE Setup List  }
  2762.         padByte:                SInt8;
  2763.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  2764.     END;
  2765.  
  2766.  
  2767. {
  2768. DirAddADAPDirectory:
  2769. The catalog specified by 'directoryName' and 'discriminator' will be
  2770. added to the list of catalogs maintained by the Toolbox. Once added,
  2771. the catalog is available across boots, until the catalog is removed
  2772. explicitly through a DirRemoveADAPDirectory call.
  2773. If 'serverHint' is not nil, the address provided will be used
  2774. to contact a PathFinder for the catalog specified.
  2775. If 'serverHint' is nil or does not point to a valid PathFinder server
  2776. for that catalog, this call will fail.
  2777. If 'addToOCESetup' is true, the catalog will be automatically added to the setup
  2778. catalog list and will be visible through EnumerateDirectories calls and
  2779. also a creationID to the directoryRecord will be returned.
  2780. If this parameter is set to 'false', catalog will be added to temprary list
  2781. and will be available for making other catalog service calls. The catalogs
  2782. which are not in the setup  list will not be visible through
  2783. EnumerateDirectories call.
  2784. }
  2785.     DirAddADAPDirectoryPBPtr = ^DirAddADAPDirectoryPB;
  2786.     DirAddADAPDirectoryPB = RECORD
  2787.         qLink:                    Ptr;
  2788.         reserved1:                LONGINT;
  2789.         reserved2:                LONGINT;
  2790.         ioCompletion:            DirIOCompletionUPP;
  2791.         ioResult:                OSErr;
  2792.         saveA5:                    LONGINT;
  2793.         reqCode:                INTEGER;
  2794.         reserved:                ARRAY [0..1] OF LONGINT;
  2795.         serverHint:                AddrBlock;
  2796.         dsRefNum:                INTEGER;
  2797.         callID:                    LONGINT;
  2798.         identity:                AuthIdentity;
  2799.         gReserved1:                LONGINT;
  2800.         gReserved2:                LONGINT;
  2801.         gReserved3:                LONGINT;
  2802.         clientData:                LONGINT;
  2803.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2804.         discriminator:            DirDiscriminator;                        {   --> discriminate between dup catalog names  }
  2805.         addToOCESetup:            BOOLEAN;                                {   --> add this catalog to OCE Setup  }
  2806.         padByte:                SInt8;
  2807.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  2808.     END;
  2809.  
  2810.  
  2811.  
  2812. {
  2813. GetDirectoryInfo:
  2814. DirGetDirectoryInfo will do:
  2815.  
  2816. If a 'dsRefNum' is non-Zero, the catalog information for
  2817.     the corresponding  PAB will be  returned.
  2818.  If 'dsRefNum' is zero and 'serverHint' is non-zero, If the
  2819.  'serverHint' points to a valid ADAP Catalog Server(Path Finder),
  2820.  the catalog information (i.e. directoryName, discriminator, features)
  2821.  for that catalog will be returned.
  2822.     If a  valid catalog name and discriminator are provided
  2823.     features (Set of capability flags) for that catalog will be returned.
  2824. }
  2825.     DirGetDirectoryInfoPBPtr = ^DirGetDirectoryInfoPB;
  2826.     DirGetDirectoryInfoPB = RECORD
  2827.         qLink:                    Ptr;
  2828.         reserved1:                LONGINT;
  2829.         reserved2:                LONGINT;
  2830.         ioCompletion:            DirIOCompletionUPP;
  2831.         ioResult:                OSErr;
  2832.         saveA5:                    LONGINT;
  2833.         reqCode:                INTEGER;
  2834.         reserved:                ARRAY [0..1] OF LONGINT;
  2835.         serverHint:                AddrBlock;
  2836.         dsRefNum:                INTEGER;
  2837.         callID:                    LONGINT;
  2838.         identity:                AuthIdentity;
  2839.         gReserved1:                LONGINT;
  2840.         gReserved2:                LONGINT;
  2841.         gReserved3:                LONGINT;
  2842.         clientData:                LONGINT;
  2843.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  2844.         discriminator:            DirDiscriminator;                        {  <--> descriminate between dup catalog names  }
  2845.         features:                DirGestalt;                                {  <--  capability bit flags  }
  2846.     END;
  2847.  
  2848.  
  2849. {
  2850.  * Note on Access Controls:
  2851.  * Access control is based on a list model.
  2852.  * You can get access controls list which gives dsObject and accMask for each dsObject.
  2853.  * GetAccessControl can be limited to currently supplied identity by setting forCurrentUserOnly.
  2854.  * There are special DSObjects are defined in ADASTypes.h for each of the category
  2855.  * supported in ADAS Catalogs. (kOwner, kFriends, kAuthenticatedToCluster, 
  2856.  * kAuthenticatedToDirectory, kGuest) and DUGetActlDSSpec call can be used
  2857.  * to obtain appropraiate DSSpec before making set calls to ADAS catalogs.
  2858.  *
  2859.  }
  2860.  
  2861.  
  2862.  
  2863.  
  2864.  
  2865. {
  2866.     GetDNodeAccessControlGet:
  2867.     This call can be done to get back access control list for a DNode.
  2868.     pRLI -> RLI of the DNode whose access control list is sought
  2869.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  2870.                       the identity parameter will be returned other wise entire list
  2871.                       will be returned.
  2872.     startingDsObj  -> If this is not nil, list should be started after this object.
  2873.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  2874.                               results.
  2875.                               
  2876.     The results will be collected in the 'getBuffer' supplied by the user.
  2877.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  2878.      
  2879.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  2880.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  2881.     
  2882.     Results returned for each DSObject will contain DSSpecPtr and three sets of access mask. 
  2883.  
  2884. }
  2885.  
  2886.     DirGetDNodeAccessControlGetPBPtr = ^DirGetDNodeAccessControlGetPB;
  2887.     DirGetDNodeAccessControlGetPB = RECORD
  2888.         qLink:                    Ptr;
  2889.         reserved1:                LONGINT;
  2890.         reserved2:                LONGINT;
  2891.         ioCompletion:            DirIOCompletionUPP;
  2892.         ioResult:                OSErr;
  2893.         saveA5:                    LONGINT;
  2894.         reqCode:                INTEGER;
  2895.         reserved:                ARRAY [0..1] OF LONGINT;
  2896.         serverHint:                AddrBlock;
  2897.         dsRefNum:                INTEGER;
  2898.         callID:                    LONGINT;
  2899.         identity:                AuthIdentity;
  2900.         gReserved1:                LONGINT;
  2901.         gReserved2:                LONGINT;
  2902.         gReserved3:                LONGINT;
  2903.         clientData:                LONGINT;
  2904.         pRLI:                    PackedRLIPtr;                            {   -> RLI of the cluster whose access control list is sought   }
  2905.         bReserved:                LONGINT;                                {   -- unused  }
  2906.         cReserved:                LONGINT;                                {   -- unused  }
  2907.         dReserved:                LONGINT;                                {   -- unused  }
  2908.         eResreved:                LONGINT;                                {  -->  }
  2909.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  2910.         filler1:                BOOLEAN;
  2911.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  2912.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the DsObject specified in starting point  }
  2913.         filler2:                BOOLEAN;
  2914.         getBuffer:                Ptr;                                    {     ->  }
  2915.         getBufferSize:            LONGINT;                                {   ->  }
  2916.     END;
  2917.  
  2918. { The Access Control call-back function is defined as follows: }
  2919.     ForEachDNodeAccessControlProcPtr = ProcPtr;  { FUNCTION ForEachDNodeAccessControl(clientData: LONGINT; (CONST)VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; defaultRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask): BOOLEAN; }
  2920.  
  2921.     ForEachDNodeAccessControlUPP = UniversalProcPtr;
  2922.     ForEachDNodeAccessControl            = ForEachDNodeAccessControlUPP;
  2923. {
  2924.     GetDNodeAccessControlParse:
  2925.     After an GetDNodeAccessControlGet call has completed, 
  2926.     call GetDNodeAccessControlParse to parse through the buffer that
  2927.     that was filled in GetDNodeAccessControlGet.
  2928.     
  2929.     'eachObject' will be called each time to return to the client a
  2930.     DsObject and a set of three accMasks (three long words) for that object.
  2931.     Acceesmasks returned apply to the dsObject in the callback :
  2932.     1. Currently Active Access mask for the specified DNode.
  2933.     2. Default Access mask for any Record in the DNode
  2934.     3. Default Access mask for any Attribute in the DNode
  2935.     The clientData parameter that you pass in the parameter block will be passed
  2936.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  2937.     to allow you some way to match the call-back to the original call (for
  2938.     example, you make more then one aysynchronous GetDNodeAccessControlGet calls and you want to
  2939.     associate returned results in some way).
  2940.     
  2941.     The client should return FALSE from 'eachObject' to continue
  2942.     processing of the GetDNodeAccessControlParse request.  Returning TRUE will
  2943.     terminate the GetDNodeAccessControlParse request.
  2944.  
  2945.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  2946.     of execution as the thread that made the GetDNodeAccessControlParse call.  That means that the
  2947.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  2948.     that were in effect when the call was made.  Because of this, the call-back
  2949.     routine has the same restrictions as the caller of GetDNodeAccessControlParse:
  2950.     if GetDNodeAccessControlParse was not called from interrupt level, then the call-
  2951.     back routine can allocate memory. For asynchronous calls, call-back routine is
  2952.     like a ioCompletion except that A5 will be preserved for the application.
  2953.  
  2954.  
  2955. }
  2956.  
  2957.     DirGetDNodeAccessControlParsePBPtr = ^DirGetDNodeAccessControlParsePB;
  2958.     DirGetDNodeAccessControlParsePB = RECORD
  2959.         qLink:                    Ptr;
  2960.         reserved1:                LONGINT;
  2961.         reserved2:                LONGINT;
  2962.         ioCompletion:            DirIOCompletionUPP;
  2963.         ioResult:                OSErr;
  2964.         saveA5:                    LONGINT;
  2965.         reqCode:                INTEGER;
  2966.         reserved:                ARRAY [0..1] OF LONGINT;
  2967.         serverHint:                AddrBlock;
  2968.         dsRefNum:                INTEGER;
  2969.         callID:                    LONGINT;
  2970.         identity:                AuthIdentity;
  2971.         gReserved1:                LONGINT;
  2972.         gReserved2:                LONGINT;
  2973.         gReserved3:                LONGINT;
  2974.         clientData:                LONGINT;
  2975.         pRLI:                    PackedRLIPtr;                            {   -> RLI of the cluster   }
  2976.         bReserved:                LONGINT;                                {   -- unused  }
  2977.         cReserved:                LONGINT;                                {   -- unused  }
  2978.         dReserved:                LONGINT;                                {   -- unused  }
  2979.         eachObject:                ForEachDNodeAccessControl;                {  -->  }
  2980.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  2981.         filler1:                BOOLEAN;
  2982.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  2983.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  2984.         filler2:                BOOLEAN;
  2985.         getBuffer:                Ptr;                                    {     ->  }
  2986.         getBufferSize:            LONGINT;                                {   ->  }
  2987.     END;
  2988.  
  2989. {
  2990.     GetRecordAccessControlGet:
  2991.     This call can be done to get back access control list for a RecordID.
  2992.     aRecord -> RecordID to which access control list is sought
  2993.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  2994.                       the identity parameter will be returned other wise entire list
  2995.                       will be returned.
  2996.     startingDsObj  -> If this is not nil, list should be started after this object.
  2997.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  2998.                               results.
  2999.                               
  3000.     The results will be collected in the 'getBuffer' supplied by the user.
  3001.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  3002.      
  3003.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  3004.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  3005.     
  3006.     Results returned for each DSObject will contain DSSpecPtr and accMask. 
  3007.  
  3008. }
  3009.  
  3010.     DirGetRecordAccessControlGetPBPtr = ^DirGetRecordAccessControlGetPB;
  3011.     DirGetRecordAccessControlGetPB = RECORD
  3012.         qLink:                    Ptr;
  3013.         reserved1:                LONGINT;
  3014.         reserved2:                LONGINT;
  3015.         ioCompletion:            DirIOCompletionUPP;
  3016.         ioResult:                OSErr;
  3017.         saveA5:                    LONGINT;
  3018.         reqCode:                INTEGER;
  3019.         reserved:                ARRAY [0..1] OF LONGINT;
  3020.         serverHint:                AddrBlock;
  3021.         dsRefNum:                INTEGER;
  3022.         callID:                    LONGINT;
  3023.         identity:                AuthIdentity;
  3024.         gReserved1:                LONGINT;
  3025.         gReserved2:                LONGINT;
  3026.         gReserved3:                LONGINT;
  3027.         clientData:                LONGINT;
  3028.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3029.         bReserved:                LONGINT;                                {   -- unused  }
  3030.         cReserved:                LONGINT;                                {   -- unused  }
  3031.         dReserved:                LONGINT;                                {   -- unused  }
  3032.         eResreved:                LONGINT;                                {  -->  }
  3033.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3034.         filler1:                BOOLEAN;
  3035.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3036.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3037.         filler2:                BOOLEAN;
  3038.         getBuffer:                Ptr;                                    {     ->  }
  3039.         getBufferSize:            LONGINT;                                {   ->  }
  3040.     END;
  3041.  
  3042. { The Access Control call-back function is defined as follows: }
  3043.     ForEachRecordAccessControlProcPtr = ProcPtr;  { FUNCTION ForEachRecordAccessControl(clientData: LONGINT; (CONST)VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask): BOOLEAN; }
  3044.  
  3045.     ForEachRecordAccessControlUPP = UniversalProcPtr;
  3046.     ForEachRecordAccessControl            = ForEachRecordAccessControlUPP;
  3047. {
  3048.     GetRecordAccessControlParse:
  3049.     After an GetRecordAccessControlGet call has completed, 
  3050.     call GetRecordAccessControlParse to parse through the buffer that
  3051.     that was filled in GetRecordAccessControlGet.
  3052.     
  3053.     'eachObject' will be called each time to return to the client a
  3054.     DsObject and a set of three accMasks (three long words) for that object.
  3055.     Acceesmasks returned apply to the dsObject in the callback :
  3056.     1. Active Access mask for the DNode Containing the Record.
  3057.     2. Active Access mask for the Record specified.
  3058.     3. Defualt Access mask for Attributes in the record.
  3059.     The clientData parameter that you pass in the parameter block will be passed
  3060.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  3061.     to allow you some way to match the call-back to the original call (for
  3062.     example, you make more then one aysynchronous GetRecordAccessControlGet calls and you want to
  3063.     associate returned results in some way).
  3064.     
  3065.     The client should return FALSE from 'eachObject' to continue
  3066.     processing of the GetRecordAccessControlParse request.  Returning TRUE will
  3067.     terminate the GetRecordAccessControlParse request.
  3068.  
  3069.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  3070.     of execution as the thread that made the GetRecordAccessControlParse call.  That means that the
  3071.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3072.     that were in effect when the call was made.  Because of this, the call-back
  3073.     routine has the same restrictions as the caller of GetRecordAccessControlParse:
  3074.     if GetRecordAccessControlParse was not called from interrupt level, then the call-
  3075.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3076.     like a ioCompletion except that A5 will be preserved for the application.
  3077.  
  3078.  
  3079. }
  3080.  
  3081.     DirGetRecordAccessControlParsePBPtr = ^DirGetRecordAccessControlParsePB;
  3082.     DirGetRecordAccessControlParsePB = RECORD
  3083.         qLink:                    Ptr;
  3084.         reserved1:                LONGINT;
  3085.         reserved2:                LONGINT;
  3086.         ioCompletion:            DirIOCompletionUPP;
  3087.         ioResult:                OSErr;
  3088.         saveA5:                    LONGINT;
  3089.         reqCode:                INTEGER;
  3090.         reserved:                ARRAY [0..1] OF LONGINT;
  3091.         serverHint:                AddrBlock;
  3092.         dsRefNum:                INTEGER;
  3093.         callID:                    LONGINT;
  3094.         identity:                AuthIdentity;
  3095.         gReserved1:                LONGINT;
  3096.         gReserved2:                LONGINT;
  3097.         gReserved3:                LONGINT;
  3098.         clientData:                LONGINT;
  3099.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3100.         bReserved:                LONGINT;                                {   -- unused  }
  3101.         cReserved:                LONGINT;                                {   -- unused  }
  3102.         dReserved:                LONGINT;                                {   -- unused  }
  3103.         eachObject:                ForEachRecordAccessControl;                {  -->  }
  3104.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3105.         filler1:                BOOLEAN;
  3106.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3107.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3108.         filler2:                BOOLEAN;
  3109.         getBuffer:                Ptr;                                    {     ->  }
  3110.         getBufferSize:            LONGINT;                                {   ->  }
  3111.     END;
  3112.  
  3113. {
  3114.     GetAttributeAccessControlGet:
  3115.     This call can be done to get back access control list for a attributeType with in a RecordID.
  3116.     aRecord -> RecordID to which access control list is sought
  3117.     aType    -> Attribute Type to which access controls are sought
  3118.     curUserAccMask -> If this is 'true', Access controls for the user specified by
  3119.                       the identity parameter will be returned other wise entire list
  3120.                       will be returned.
  3121.     startingDsObj  -> If this is not nil, list should be started after this object.
  3122.     startingPointInclusive -> If staringDsObj is specified, include that in the returned
  3123.                               results.
  3124.                               
  3125.     The results will be collected in the 'getBuffer' supplied by the user.
  3126.     If buffer can not hold all the data returned 'daMoreData' error will be returned.
  3127.      
  3128.     If user receives 'noErr' or 'daMoreData', buffer will contain valid results. A user
  3129.     can extract the results in the 'getBuffer' by making 'DsGetDNodeAccessControlParse' call.
  3130.     
  3131.     Results returned for each DSObject will contain DSSpecPtr and accMask. 
  3132.  
  3133. }
  3134.  
  3135.     DirGetAttributeAccessControlGetPBPtr = ^DirGetAttributeAccessControlGetPB;
  3136.     DirGetAttributeAccessControlGetPB = RECORD
  3137.         qLink:                    Ptr;
  3138.         reserved1:                LONGINT;
  3139.         reserved2:                LONGINT;
  3140.         ioCompletion:            DirIOCompletionUPP;
  3141.         ioResult:                OSErr;
  3142.         saveA5:                    LONGINT;
  3143.         reqCode:                INTEGER;
  3144.         reserved:                ARRAY [0..1] OF LONGINT;
  3145.         serverHint:                AddrBlock;
  3146.         dsRefNum:                INTEGER;
  3147.         callID:                    LONGINT;
  3148.         identity:                AuthIdentity;
  3149.         gReserved1:                LONGINT;
  3150.         gReserved2:                LONGINT;
  3151.         gReserved3:                LONGINT;
  3152.         clientData:                LONGINT;
  3153.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3154.         aType:                    AttributeTypePtr;                        {   -> Attribute Type to which access controls are sought           }
  3155.         cReserved:                LONGINT;                                {   -- unused  }
  3156.         dReserved:                LONGINT;                                {   -- unused  }
  3157.         eResreved:                LONGINT;                                {  -->  }
  3158.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3159.         filler1:                BOOLEAN;
  3160.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3161.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3162.         filler2:                BOOLEAN;
  3163.         getBuffer:                Ptr;                                    {     ->  }
  3164.         getBufferSize:            LONGINT;                                {   ->  }
  3165.     END;
  3166.  
  3167. { The Access Control call-back function is defined as follows: }
  3168.     ForEachAttributeAccessControlProcPtr = ProcPtr;  { FUNCTION ForEachAttributeAccessControl(clientData: LONGINT; (CONST)VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; activeAttributeAccMask: AccessMask): BOOLEAN; }
  3169.  
  3170.     ForEachAttributeAccessControlUPP = UniversalProcPtr;
  3171.     ForEachAttributeAccessControl        = ForEachAttributeAccessControlUPP;
  3172. {
  3173.     GetAttributeAccessControlParse:
  3174.     After an GetAttributeAccessControlGet call has completed, 
  3175.     call GetAttributeAccessControlParse to parse through the buffer that
  3176.     that was filled in GetAttributeAccessControlGet.
  3177.     
  3178.     'eachObject' will be called each time to return to the client a
  3179.     DsObject and a set of three accMasks (three long words) for that object.
  3180.     Acceesmasks returned apply to the dsObject in the callback :
  3181.     1. Active Access mask for the DNode Containing the Attribute.
  3182.     2. Active Access mask for the Record in the Containing the Attribute.
  3183.     3. Active Access mask for the specified Attribute.
  3184.     The clientData parameter that you pass in the parameter block will be passed
  3185.     to 'eachObject'.  You are free to put anything in clientData - it is intended
  3186.     to allow you some way to match the call-back to the original call (for
  3187.     example, you make more then one aysynchronous GetAttributeAccessControlGet calls and you want to
  3188.     associate returned results in some way).
  3189.     
  3190.     The client should return FALSE from 'eachObject' to continue
  3191.     processing of the GetAttributeAccessControlParse request.  Returning TRUE will
  3192.     terminate the GetAttributeAccessControlParse request.
  3193.  
  3194.     For synchronous calls, the call-back routine actually runs as part of the same thread 
  3195.     of execution as the thread that made the GetAttributeAccessControlParse call.  That means that the
  3196.     same low-memory globals, A5, stack, etc. are in effect during the call-back
  3197.     that were in effect when the call was made.  Because of this, the call-back
  3198.     routine has the same restrictions as the caller of GetAttributeAccessControlParse:
  3199.     if GetAttributeAccessControlParse was not called from interrupt level, then the call-
  3200.     back routine can allocate memory. For asynchronous calls, call-back routine is
  3201.     like a ioCompletion except that A5 will be preserved for the application.
  3202.  
  3203.  
  3204. }
  3205.  
  3206.     DirGetAttributeAccessControlParsePBPtr = ^DirGetAttributeAccessControlParsePB;
  3207.     DirGetAttributeAccessControlParsePB = RECORD
  3208.         qLink:                    Ptr;
  3209.         reserved1:                LONGINT;
  3210.         reserved2:                LONGINT;
  3211.         ioCompletion:            DirIOCompletionUPP;
  3212.         ioResult:                OSErr;
  3213.         saveA5:                    LONGINT;
  3214.         reqCode:                INTEGER;
  3215.         reserved:                ARRAY [0..1] OF LONGINT;
  3216.         serverHint:                AddrBlock;
  3217.         dsRefNum:                INTEGER;
  3218.         callID:                    LONGINT;
  3219.         identity:                AuthIdentity;
  3220.         gReserved1:                LONGINT;
  3221.         gReserved2:                LONGINT;
  3222.         gReserved3:                LONGINT;
  3223.         clientData:                LONGINT;
  3224.         aRecord:                RecordIDPtr;                            {   -> RecordID to which access control list is sought list is sought   }
  3225.         aType:                    AttributeTypePtr;                        {   -> Attribute Type to which access controls are sought           }
  3226.         cReserved:                LONGINT;                                {   -- unused  }
  3227.         dReserved:                LONGINT;                                {   -- unused  }
  3228.         eachObject:                ForEachAttributeAccessControl;            {  -->  }
  3229.         forCurrentUserOnly:        BOOLEAN;                                {  -->   }
  3230.         filler1:                BOOLEAN;
  3231.         startingPoint:            DSSpecPtr;                                {  --> starting Point  }
  3232.         includeStartingPoint:    BOOLEAN;                                {  --> if true return the record specified in starting point  }
  3233.         filler2:                BOOLEAN;
  3234.         getBuffer:                Ptr;                                    {     ->  }
  3235.         getBufferSize:            LONGINT;                                {   ->  }
  3236.     END;
  3237.  
  3238.  
  3239.  
  3240.  
  3241.  
  3242.  
  3243. {
  3244. MapPathNameToDNodeNumber:
  3245. This call maps a given PathName within a catalog to its DNodeNumber.
  3246. }
  3247.     DirMapPathNameToDNodeNumberPBPtr = ^DirMapPathNameToDNodeNumberPB;
  3248.     DirMapPathNameToDNodeNumberPB = RECORD
  3249.         qLink:                    Ptr;
  3250.         reserved1:                LONGINT;
  3251.         reserved2:                LONGINT;
  3252.         ioCompletion:            DirIOCompletionUPP;
  3253.         ioResult:                OSErr;
  3254.         saveA5:                    LONGINT;
  3255.         reqCode:                INTEGER;
  3256.         reserved:                ARRAY [0..1] OF LONGINT;
  3257.         serverHint:                AddrBlock;
  3258.         dsRefNum:                INTEGER;
  3259.         callID:                    LONGINT;
  3260.         identity:                AuthIdentity;
  3261.         gReserved1:                LONGINT;
  3262.         gReserved2:                LONGINT;
  3263.         gReserved3:                LONGINT;
  3264.         clientData:                LONGINT;
  3265.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3266.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3267.         dNodeNumber:            DNodeNum;                                {  <--  dNodenumber to the path  }
  3268.         path:                    PackedPathNamePtr;                        {   --> Path Name to be mapped  }
  3269.     END;
  3270.  
  3271. {
  3272. PathName in the path field will be mapped to the cooresponding dNodeNumber and
  3273. returned in the DNodeNumber field. directoryName and descriminator Fields are
  3274. ignored. DSRefNum is used to identify the catalog.
  3275. }
  3276.  
  3277.  
  3278. {
  3279. MapDNodeNumberToPathName:
  3280. This call will map a given DNodeNumber with in a catalog to the
  3281. corresponding PathName.
  3282. }
  3283.     DirMapDNodeNumberToPathNamePBPtr = ^DirMapDNodeNumberToPathNamePB;
  3284.     DirMapDNodeNumberToPathNamePB = RECORD
  3285.         qLink:                    Ptr;
  3286.         reserved1:                LONGINT;
  3287.         reserved2:                LONGINT;
  3288.         ioCompletion:            DirIOCompletionUPP;
  3289.         ioResult:                OSErr;
  3290.         saveA5:                    LONGINT;
  3291.         reqCode:                INTEGER;
  3292.         reserved:                ARRAY [0..1] OF LONGINT;
  3293.         serverHint:                AddrBlock;
  3294.         dsRefNum:                INTEGER;
  3295.         callID:                    LONGINT;
  3296.         identity:                AuthIdentity;
  3297.         gReserved1:                LONGINT;
  3298.         gReserved2:                LONGINT;
  3299.         gReserved3:                LONGINT;
  3300.         clientData:                LONGINT;
  3301.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3302.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3303.         dNodeNumber:            DNodeNum;                                {   --> dNodenumber to be mapped  }
  3304.         path:                    PackedPathNamePtr;                        {  <--  Packed Path Name returned  }
  3305.         lengthOfPathName:        INTEGER;                                {   --> length of packed pathName structure }
  3306.     END;
  3307.  
  3308. {
  3309. dNodeNumber in the DNodeNumber field will be mapped to the cooresponding
  3310. pathName and returned in the PackedPathName field.
  3311. lengthOfPathName is to be set the length of pathName structure.
  3312. If length of PackedPathName is larger then the lengthOfPathName, kOCEMoreData
  3313. OSErr will be returned.
  3314. }
  3315. {
  3316. GetLocalNetworkSpec:
  3317. This call will return the Local NetworkSpec. Client should supply
  3318. an RString big enough to hold the NetworkSpec.
  3319. }
  3320.     DirGetLocalNetworkSpecPBPtr = ^DirGetLocalNetworkSpecPB;
  3321.     DirGetLocalNetworkSpecPB = RECORD
  3322.         qLink:                    Ptr;
  3323.         reserved1:                LONGINT;
  3324.         reserved2:                LONGINT;
  3325.         ioCompletion:            DirIOCompletionUPP;
  3326.         ioResult:                OSErr;
  3327.         saveA5:                    LONGINT;
  3328.         reqCode:                INTEGER;
  3329.         reserved:                ARRAY [0..1] OF LONGINT;
  3330.         serverHint:                AddrBlock;
  3331.         dsRefNum:                INTEGER;
  3332.         callID:                    LONGINT;
  3333.         identity:                AuthIdentity;
  3334.         gReserved1:                LONGINT;
  3335.         gReserved2:                LONGINT;
  3336.         gReserved3:                LONGINT;
  3337.         clientData:                LONGINT;
  3338.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3339.         discriminator:            DirDiscriminator;                        {   --> discriminator  }
  3340.         networkSpec:            NetworkSpecPtr;                            {  <--  NetworkSpec  }
  3341.     END;
  3342.  
  3343. {
  3344. PathName in the path field must be set to nil. internetName should be large
  3345. enough to hold the internetName. InterNetname returned indicates path finder's
  3346. local internet (configured by administrator).
  3347. }
  3348. {
  3349. GetDNodeInfo:
  3350. This call will return the information (internetName and descriptor)
  3351. for the given RLI of a DNode.
  3352. }
  3353.     DirGetDNodeInfoPBPtr = ^DirGetDNodeInfoPB;
  3354.     DirGetDNodeInfoPB = RECORD
  3355.         qLink:                    Ptr;
  3356.         reserved1:                LONGINT;
  3357.         reserved2:                LONGINT;
  3358.         ioCompletion:            DirIOCompletionUPP;
  3359.         ioResult:                OSErr;
  3360.         saveA5:                    LONGINT;
  3361.         reqCode:                INTEGER;
  3362.         reserved:                ARRAY [0..1] OF LONGINT;
  3363.         serverHint:                AddrBlock;
  3364.         dsRefNum:                INTEGER;
  3365.         callID:                    LONGINT;
  3366.         identity:                AuthIdentity;
  3367.         gReserved1:                LONGINT;
  3368.         gReserved2:                LONGINT;
  3369.         gReserved3:                LONGINT;
  3370.         clientData:                LONGINT;
  3371.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI whose info is requested  }
  3372.         descriptor:                DirNodeKind;                            {  <--  dNode descriptor  }
  3373.         networkSpec:            NetworkSpecPtr;                            {  <--  cluster's networkSpec if kIsCluster  }
  3374.     END;
  3375.  
  3376. {
  3377. If DnodeNumber is set to a non zero value, path should be set to nil.
  3378. if DnodeNumber is set to zero, pathName should point to a packed path name.
  3379. internetName should be large enough to hold
  3380. the internetName. (If the internetName is same as the one got by
  3381. GetLocalInternetName call, it indicates cluster is reachable  without
  3382. forwarders, --> Tell me if I am wrong)
  3383. }
  3384.  
  3385. {
  3386. DirCreatePersonalDirectory:
  3387. A new  personal catalog can be created by specifying an FSSpec for
  3388. the file. If a file already exists dupFNErr will be returned. This call is
  3389. supported 'synchronous' mode only.
  3390. }
  3391.     DirCreatePersonalDirectoryPBPtr = ^DirCreatePersonalDirectoryPB;
  3392.     DirCreatePersonalDirectoryPB = RECORD
  3393.         qLink:                    Ptr;
  3394.         reserved1:                LONGINT;
  3395.         reserved2:                LONGINT;
  3396.         ioCompletion:            DirIOCompletionUPP;
  3397.         ioResult:                OSErr;
  3398.         saveA5:                    LONGINT;
  3399.         reqCode:                INTEGER;
  3400.         reserved:                ARRAY [0..1] OF LONGINT;
  3401.         serverHint:                AddrBlock;
  3402.         dsRefNum:                INTEGER;
  3403.         callID:                    LONGINT;
  3404.         identity:                AuthIdentity;
  3405.         gReserved1:                LONGINT;
  3406.         gReserved2:                LONGINT;
  3407.         gReserved3:                LONGINT;
  3408.         clientData:                LONGINT;
  3409.         fsSpec:                    FSSpecPtr;                                {   --> FSSpec for the Personal Catalog  }
  3410.         fdType:                    OSType;                                    {   --> file type for the Personal Catalog  }
  3411.         fdCreator:                OSType;                                    {   --> file creator for the Personal Catalog  }
  3412.     END;
  3413.  
  3414. {
  3415. DirOpenPersonalDirectory:
  3416. An existing personal catalog can be opened using this call.
  3417. User can specify the personal catalog by FSSpec for the AddressBook file.
  3418. 'accessRequested' field specifies open permissions. 'fsRdPerm'  & 'fsRdWrPerm'
  3419. are the only accepted open modes for the address book.
  3420. When the call completes successfully, a dsRefNum will be returned. The 'dsRefNum'
  3421. field is in the DSParamBlockHeader. In addittion 'accessGranted' indicates
  3422. actual permission with personal catalog is opened and 'features' indicate the capabilty flags
  3423. associated with the personal catalog.
  3424. This call is supported 'synchronous' mode only.
  3425. }
  3426.  
  3427.     DirOpenPersonalDirectoryPBPtr = ^DirOpenPersonalDirectoryPB;
  3428.     DirOpenPersonalDirectoryPB = RECORD
  3429.         qLink:                    Ptr;
  3430.         reserved1:                LONGINT;
  3431.         reserved2:                LONGINT;
  3432.         ioCompletion:            DirIOCompletionUPP;
  3433.         ioResult:                OSErr;
  3434.         saveA5:                    LONGINT;
  3435.         reqCode:                INTEGER;
  3436.         reserved:                ARRAY [0..1] OF LONGINT;
  3437.         serverHint:                AddrBlock;
  3438.         dsRefNum:                INTEGER;
  3439.         callID:                    LONGINT;
  3440.         identity:                AuthIdentity;
  3441.         gReserved1:                LONGINT;
  3442.         gReserved2:                LONGINT;
  3443.         gReserved3:                LONGINT;
  3444.         clientData:                LONGINT;
  3445.         fsSpec:                    FSSpecPtr;                                {   --> Open an existing Personal Catalog  }
  3446.         accessRequested:        SInt8;                                    {   --> Open: permissions Requested(byte) }
  3447.         accessGranted:            SInt8;                                    {   <-- Open: permissions (byte) (Granted) }
  3448.         features:                DirGestalt;                                {  <--  features for Personal Catalog  }
  3449.     END;
  3450.  
  3451. {
  3452. DirClosePersonalDirectory: This call lets a client close AddressBook opened by DirOpenPersonalDirectory.
  3453. The Personal Catalog specified by the 'dsRefNum' will be closed.
  3454. This call is supported 'synchronous' mode only.
  3455. }
  3456.     DirClosePersonalDirectoryPBPtr = ^DirClosePersonalDirectoryPB;
  3457.     DirClosePersonalDirectoryPB = RECORD
  3458.         qLink:                    Ptr;
  3459.         reserved1:                LONGINT;
  3460.         reserved2:                LONGINT;
  3461.         ioCompletion:            DirIOCompletionUPP;
  3462.         ioResult:                OSErr;
  3463.         saveA5:                    LONGINT;
  3464.         reqCode:                INTEGER;
  3465.         reserved:                ARRAY [0..1] OF LONGINT;
  3466.         serverHint:                AddrBlock;
  3467.         dsRefNum:                INTEGER;
  3468.         callID:                    LONGINT;
  3469.         identity:                AuthIdentity;
  3470.         gReserved1:                LONGINT;
  3471.         gReserved2:                LONGINT;
  3472.         gReserved3:                LONGINT;
  3473.         clientData:                LONGINT;
  3474.     END;
  3475.  
  3476.  
  3477. {
  3478. DirMakePersonalDirectoryRLI: With this call a client can make an RLI
  3479. for a Personal Catalog opened by DirOpenPersonalDirectory Call.
  3480. A packed RLI is created for the Personal Catalog specified by the 'dsRefNum'.
  3481. If a client has a need to make the AddressBook reference to persistent
  3482. acrross boots it should make use of this call. In the current implementaion
  3483. PackedRLI has an embeeded System7.0 'alias'. If in later time
  3484. If client has a need to make reference to the AddressBook, it must use
  3485. ADAPLibrary call 'DUExtractAlias' and resole the 'alias' to 'FSSpec' and
  3486. make DirOpenPersonalDirectory call to get a 'dsRefNum'.
  3487.   'fromFSSpec'            FSPecPtr from which relative alias to be created. If nil,
  3488.                         absolute alias is created.
  3489.  'pRLIBufferSize' indicates the size of buffer pointed by 'pRLI'
  3490.  'pRLISize'    indicates the actual length of 'pRLI'. If the call
  3491.                         fails with 'kOCEMoreData' error a client can reissue
  3492.                     this call with a larger buffer of this length.
  3493.   'pRLI' is pointer to the buffer in which 'PackedRLI' is
  3494.   returned.
  3495. This call is supported in 'synchronous' mode only.
  3496. }
  3497.     DirMakePersonalDirectoryRLIPBPtr = ^DirMakePersonalDirectoryRLIPB;
  3498.     DirMakePersonalDirectoryRLIPB = RECORD
  3499.         qLink:                    Ptr;
  3500.         reserved1:                LONGINT;
  3501.         reserved2:                LONGINT;
  3502.         ioCompletion:            DirIOCompletionUPP;
  3503.         ioResult:                OSErr;
  3504.         saveA5:                    LONGINT;
  3505.         reqCode:                INTEGER;
  3506.         reserved:                ARRAY [0..1] OF LONGINT;
  3507.         serverHint:                AddrBlock;
  3508.         dsRefNum:                INTEGER;
  3509.         callID:                    LONGINT;
  3510.         identity:                AuthIdentity;
  3511.         gReserved1:                LONGINT;
  3512.         gReserved2:                LONGINT;
  3513.         gReserved3:                LONGINT;
  3514.         clientData:                LONGINT;
  3515.         fromFSSpec:                FSSpecPtr;                                {   --> FSSpec for creating relative alia  }
  3516.         pRLIBufferSize:            INTEGER;                                {   --> Length of 'pRLI' buffer  }
  3517.         pRLISize:                INTEGER;                                {  <--  Length of actual 'pRLI'  }
  3518.         pRLI:                    PackedRLIPtr;                            {  <--  pRLI for the specified AddressBook  }
  3519.     END;
  3520.  
  3521.  
  3522. {****************************************************************************
  3523. The calls described below apply only for CSAM Drivers:
  3524.  
  3525. The following three calls provide capability to Install/Remove a CSAM at RunTime.
  3526.     DirAddDSAM
  3527.     DirRemoveDSAM
  3528.     DirInstantiateDSAM
  3529.  
  3530. The following two calls provide capability to Install/Remove a CSAM Catalog at RunTime.
  3531.     DirAddDSAMDirectory
  3532.     DirRemoveDirectory
  3533.  
  3534. DirGetDirectoryIcon call is used by clients to get any special icon associated
  3535. with a CSAM catalog.
  3536.  
  3537. ****************************************************************************}
  3538.  
  3539. {
  3540. DirAddDSAM: This call can be used to inorm the availability of a CSAM file
  3541. after discovering the CSAM file.
  3542.     dsamName -> is generic CSAM name e.g. Untitled X.500 directory
  3543.     dsamSignature -> could be generic CSAM kind e.g. 'X500'.
  3544.     fsSpec -> is the FileSpec for the file containing CSAM resources.
  3545. If the call is successfull 'DSAMRecordCID' will be returned. If the
  3546. call returns 'daDSAMRecordCIDExists', record was already there and
  3547. 'dsamRecordCID' will be returned.
  3548. This call can be done only in synchronous mode.
  3549. }
  3550.     DirAddDSAMPBPtr = ^DirAddDSAMPB;
  3551.     DirAddDSAMPB = RECORD
  3552.         qLink:                    Ptr;
  3553.         reserved1:                LONGINT;
  3554.         reserved2:                LONGINT;
  3555.         ioCompletion:            DirIOCompletionUPP;
  3556.         ioResult:                OSErr;
  3557.         saveA5:                    LONGINT;
  3558.         reqCode:                INTEGER;
  3559.         reserved:                ARRAY [0..1] OF LONGINT;
  3560.         serverHint:                AddrBlock;
  3561.         dsRefNum:                INTEGER;
  3562.         callID:                    LONGINT;
  3563.         identity:                AuthIdentity;
  3564.         gReserved1:                LONGINT;
  3565.         gReserved2:                LONGINT;
  3566.         gReserved3:                LONGINT;
  3567.         clientData:                LONGINT;
  3568.         dsamRecordCID:            CreationID;                                {  <--  CreationID for the CSAM record  }
  3569.         dsamName:                RStringPtr;                                {   --> CSAM name  }
  3570.         dsamKind:                OCEDirectoryKind;                        {   --> CSAM kind  }
  3571.         fsSpec:                    FSSpecPtr;                                {   --> FSSpec for the file containing CSAM  }
  3572.     END;
  3573.  
  3574. {
  3575. DirInstantiateDSAM: This call should be used by the CSAM driver in response
  3576. Driver Open call to indicate the toolbox about the availability of the CSAM.
  3577.     dsamName -> is generic CSAM name e.g. Untitled X.500 directory
  3578.     dsamKind -> could be generic CSAM kind e.g. 'X500'.
  3579.     dsamData -> pointer to private DSAMData. This will be paased back to the CSAM
  3580.     when the CSAM functions (DSAMDirProc,DSAMDirParseProc, DSAMAuthProc) are called.
  3581.     CSAM should already be setup using DirAddDSAM call.
  3582.     DSAMDirProc -> This procedure will be called when  any catalog service
  3583.     call intended for the CSAM (other then parse calls)
  3584.     DSAMDirParseProc -> This procedure will be called when any of the parse calls
  3585.     are called.
  3586.     DSAMAuthProc -> This procedure will be called when any of the Authentication Calls
  3587.     are made to the CSAM. If the CSAM does not support authentication, this can be nil.
  3588. This call can be done only in synchronous mode.
  3589. }
  3590.     DSAMDirProcPtr = ProcPtr;  { FUNCTION DSAMDir(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr; }
  3591.  
  3592.     DSAMDirUPP = UniversalProcPtr;
  3593.     DSAMDirProc                            = DSAMDirUPP;
  3594.     DSAMDirParseProcPtr = ProcPtr;  { FUNCTION DSAMDirParse(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr; }
  3595.  
  3596.     DSAMDirParseUPP = UniversalProcPtr;
  3597.     DSAMDirParseProc                    = DSAMDirParseUPP;
  3598.     DSAMAuthProcPtr = ProcPtr;  { FUNCTION DSAMAuth(dsamData: UNIV Ptr; pb: AuthParamBlockPtr; async: BOOLEAN): OSErr; }
  3599.  
  3600.     DSAMAuthUPP = UniversalProcPtr;
  3601.     DSAMAuthProc                        = DSAMAuthUPP;
  3602.     DirInstantiateDSAMPBPtr = ^DirInstantiateDSAMPB;
  3603.     DirInstantiateDSAMPB = RECORD
  3604.         qLink:                    Ptr;
  3605.         reserved1:                LONGINT;
  3606.         reserved2:                LONGINT;
  3607.         ioCompletion:            DirIOCompletionUPP;
  3608.         ioResult:                OSErr;
  3609.         saveA5:                    LONGINT;
  3610.         reqCode:                INTEGER;
  3611.         reserved:                ARRAY [0..1] OF LONGINT;
  3612.         serverHint:                AddrBlock;
  3613.         dsRefNum:                INTEGER;
  3614.         callID:                    LONGINT;
  3615.         identity:                AuthIdentity;
  3616.         gReserved1:                LONGINT;
  3617.         gReserved2:                LONGINT;
  3618.         gReserved3:                LONGINT;
  3619.         clientData:                LONGINT;
  3620.         dsamName:                RStringPtr;                                {   --> dsamName name  }
  3621.         dsamKind:                OCEDirectoryKind;                        {   --> DSAMKind  }
  3622.         dsamData:                Ptr;                                    {   --> dsamData   }
  3623.         dsamDirProc:            DSAMDirUPP;                                {   --> of type DSAMDirProc: for catalog service calls  }
  3624.         dsamDirParseProc:        DSAMDirParseUPP;                        {   --> of type DSAMDirParseProc: for catalog service parse calls  }
  3625.         dsamAuthProc:            DSAMAuthUPP;                            {   --> of type DSAMAuthProc: for authetication service calls  }
  3626.     END;
  3627.  
  3628.  
  3629. {
  3630. DirRemoveDSAM: This call can be used to remove  a CSAM file from the OCE Setup.
  3631.     dsamRecordCID -> is the creationID of the CSAM record.
  3632. This call can be made only in synchronous mode.
  3633. }
  3634.     DirRemoveDSAMPBPtr = ^DirRemoveDSAMPB;
  3635.     DirRemoveDSAMPB = RECORD
  3636.         qLink:                    Ptr;
  3637.         reserved1:                LONGINT;
  3638.         reserved2:                LONGINT;
  3639.         ioCompletion:            DirIOCompletionUPP;
  3640.         ioResult:                OSErr;
  3641.         saveA5:                    LONGINT;
  3642.         reqCode:                INTEGER;
  3643.         reserved:                ARRAY [0..1] OF LONGINT;
  3644.         serverHint:                AddrBlock;
  3645.         dsRefNum:                INTEGER;
  3646.         callID:                    LONGINT;
  3647.         identity:                AuthIdentity;
  3648.         gReserved1:                LONGINT;
  3649.         gReserved2:                LONGINT;
  3650.         gReserved3:                LONGINT;
  3651.         clientData:                LONGINT;
  3652.         dsamRecordCID:            CreationID;                                {  <--  CreationID for the CSAM record  }
  3653.     END;
  3654.  
  3655.  
  3656. {
  3657. DirAddDSAMDirectory: This call can be used to inorm the availability of a CSAM catalog.
  3658.     dsamRecordCID ->  recordID for the CSAM serving this catalog
  3659.     directoryName ->  name of the catalog
  3660.     discriminator -> discriminator for the catalog
  3661.     directoryRecordCID -> If the call is successful, creationID for the record will
  3662.                             be returned.
  3663. }
  3664.     DirAddDSAMDirectoryPBPtr = ^DirAddDSAMDirectoryPB;
  3665.     DirAddDSAMDirectoryPB = RECORD
  3666.         qLink:                    Ptr;
  3667.         reserved1:                LONGINT;
  3668.         reserved2:                LONGINT;
  3669.         ioCompletion:            DirIOCompletionUPP;
  3670.         ioResult:                OSErr;
  3671.         saveA5:                    LONGINT;
  3672.         reqCode:                INTEGER;
  3673.         reserved:                ARRAY [0..1] OF LONGINT;
  3674.         serverHint:                AddrBlock;
  3675.         dsRefNum:                INTEGER;
  3676.         callID:                    LONGINT;
  3677.         identity:                AuthIdentity;
  3678.         gReserved1:                LONGINT;
  3679.         gReserved2:                LONGINT;
  3680.         gReserved3:                LONGINT;
  3681.         clientData:                LONGINT;
  3682.         dsamRecordCID:            CreationID;                                {   --> CreationID for the CSAM record  }
  3683.         directoryName:            DirectoryNamePtr;                        {   --> catalog name  }
  3684.         discriminator:            DirDiscriminator;                        {   --> catalog discriminator  }
  3685.         features:                DirGestalt;                                {   --> capabilty flags for the catalog  }
  3686.         directoryRecordCID:        CreationID;                                {  <--  creationID for the catalog record  }
  3687.     END;
  3688.  
  3689. {
  3690. DirRemoveDirectory: This call can be used to inform the toolbox that
  3691. catalog specified by 'directoryRecordCID'
  3692. }
  3693.     DirRemoveDirectoryPBPtr = ^DirRemoveDirectoryPB;
  3694.     DirRemoveDirectoryPB = RECORD
  3695.         qLink:                    Ptr;
  3696.         reserved1:                LONGINT;
  3697.         reserved2:                LONGINT;
  3698.         ioCompletion:            DirIOCompletionUPP;
  3699.         ioResult:                OSErr;
  3700.         saveA5:                    LONGINT;
  3701.         reqCode:                INTEGER;
  3702.         reserved:                ARRAY [0..1] OF LONGINT;
  3703.         serverHint:                AddrBlock;
  3704.         dsRefNum:                INTEGER;
  3705.         callID:                    LONGINT;
  3706.         identity:                AuthIdentity;
  3707.         gReserved1:                LONGINT;
  3708.         gReserved2:                LONGINT;
  3709.         gReserved3:                LONGINT;
  3710.         clientData:                LONGINT;
  3711.         directoryRecordCID:        CreationID;                                {   --> creationID for the catalog record  }
  3712.     END;
  3713.  
  3714. {
  3715.  * DSGetExtendedDirectoriesInfo::  This call can be used to get
  3716.  * the information of various foreign catalogs supported.
  3717.  * Typically a DE Template  may make this call to create a
  3718.  * Address template or a Gateway may make this call to findout
  3719.  * catalog name space in which MSAM may would support. 
  3720.  * Client will supply a buffer pointed by 'bufferPtr' of size 'bufferLength'. 
  3721.  * When the call completes with 'daMoreData' error, client can examine 'totalEntries'
  3722.  * returned and reissue the call with increaing buffer.
  3723.  * Toolbox will findout the private information of each of the Foreign Catalogs
  3724.  * by polling CSAM's, Gateways, and MnMServers. The Information returned
  3725.  * for each catalog will be packed in the format: 
  3726.  * typedef struct EachDirectoryData (
  3727.  *  PackedRLI                        pRLI;           //  packed RLI for the catalog
  3728.  *  OSType                            entnType;        //  Entn Type
  3729.  *  long                            hasMailSlot;   //  If this catalog has mail slot this will be 1 otherwise zero
  3730.  *    ProtoRString                    RealName;      //  Packed RString for Real Name (padded to even boundary) 
  3731.  *    ProtoRString                    comment;       //  Packed RString holding any comment for Display (padded to even boundary)
  3732.  *    long                            length;        //  data length
  3733.  *    char                            data[length];  //  data padded to even boundary
  3734.  * );
  3735.  *
  3736.  *
  3737.  *
  3738.  * typedef struct myData (
  3739.  *      EachDirectoryData    data[numberOfEntries];    // data packed in the above format
  3740.  *    );
  3741.  *
  3742.  }
  3743.     DirGetExtendedDirectoriesInfoPBPtr = ^DirGetExtendedDirectoriesInfoPB;
  3744.     DirGetExtendedDirectoriesInfoPB = RECORD
  3745.         qLink:                    Ptr;
  3746.         reserved1:                LONGINT;
  3747.         reserved2:                LONGINT;
  3748.         ioCompletion:            DirIOCompletionUPP;
  3749.         ioResult:                OSErr;
  3750.         saveA5:                    LONGINT;
  3751.         reqCode:                INTEGER;
  3752.         reserved:                ARRAY [0..1] OF LONGINT;
  3753.         serverHint:                AddrBlock;
  3754.         dsRefNum:                INTEGER;
  3755.         callID:                    LONGINT;
  3756.         identity:                AuthIdentity;
  3757.         gReserved1:                LONGINT;
  3758.         gReserved2:                LONGINT;
  3759.         gReserved3:                LONGINT;
  3760.         clientData:                LONGINT;
  3761.         buffer:                    Ptr;                                    {   --> Pointer to a buufer where data will be returned  }
  3762.         bufferSize:                LONGINT;                                {   --> Length of the buffer, Length of actual data will be returned here  }
  3763.         totalEntries:            LONGINT;                                {  <--  Total Number of Catalogs found  }
  3764.         actualEntries:            LONGINT;                                {  <--  Total Number of Catalogs entries returned  }
  3765.     END;
  3766.  
  3767. {
  3768. DirGetDirectoryIconPB: With this call a client can find out about
  3769. the icons supported by the Catalog.
  3770. Both ADAP and Personal Catalog will not support this call for now.
  3771. A CSAM can support a call so that DE Extension can use this
  3772. call to find appropriate Icons.
  3773.  
  3774. Returns kOCEBufferTooSmall if icon is too small, but will update iconSize.
  3775. }
  3776.     DirGetDirectoryIconPBPtr = ^DirGetDirectoryIconPB;
  3777.     DirGetDirectoryIconPB = RECORD
  3778.         qLink:                    Ptr;
  3779.         reserved1:                LONGINT;
  3780.         reserved2:                LONGINT;
  3781.         ioCompletion:            DirIOCompletionUPP;
  3782.         ioResult:                OSErr;
  3783.         saveA5:                    LONGINT;
  3784.         reqCode:                INTEGER;
  3785.         reserved:                ARRAY [0..1] OF LONGINT;
  3786.         serverHint:                AddrBlock;
  3787.         dsRefNum:                INTEGER;
  3788.         callID:                    LONGINT;
  3789.         identity:                AuthIdentity;
  3790.         gReserved1:                LONGINT;
  3791.         gReserved2:                LONGINT;
  3792.         gReserved3:                LONGINT;
  3793.         clientData:                LONGINT;
  3794.         pRLI:                    PackedRLIPtr;                            {   --> packed RLI for the catalog  }
  3795.         iconType:                OSType;                                    {   --> Type of Icon requested  }
  3796.         iconBuffer:                Ptr;                                    {   --> Buffer to hold Icon Data  }
  3797.         bufferSize:                LONGINT;                                {   <-> size of buffer to hold icon data  }
  3798.     END;
  3799.  
  3800. {
  3801. DirGetOCESetupRefNum: This call will return 'dsRefnum' for the OCE Setup Personal Catalog
  3802. and oceSetupRecordCID for the oceSetup Record.
  3803. Clients interested in manipulating OCE Setup Personal Catalog directly should
  3804. make this call to get 'dsRefNum'.
  3805. 'dsRefNum' will be returned in the standard field in the DirParamHeader.
  3806. }
  3807.     DirGetOCESetupRefNumPBPtr = ^DirGetOCESetupRefNumPB;
  3808.     DirGetOCESetupRefNumPB = RECORD
  3809.         qLink:                    Ptr;
  3810.         reserved1:                LONGINT;
  3811.         reserved2:                LONGINT;
  3812.         ioCompletion:            DirIOCompletionUPP;
  3813.         ioResult:                OSErr;
  3814.         saveA5:                    LONGINT;
  3815.         reqCode:                INTEGER;
  3816.         reserved:                ARRAY [0..1] OF LONGINT;
  3817.         serverHint:                AddrBlock;
  3818.         dsRefNum:                INTEGER;
  3819.         callID:                    LONGINT;
  3820.         identity:                AuthIdentity;
  3821.         gReserved1:                LONGINT;
  3822.         gReserved2:                LONGINT;
  3823.         gReserved3:                LONGINT;
  3824.         clientData:                LONGINT;
  3825.         oceSetupRecordCID:        CreationID;                                {  --> creationID for the catalog record  }
  3826.     END;
  3827.  
  3828.  
  3829. {***************************************************************************}
  3830. { Catalog and Authentication control blocks and operation definitions }
  3831.     AuthParamBlock = RECORD
  3832.         CASE INTEGER OF
  3833.         0: (
  3834.             qLink:                Ptr;
  3835.             reserved1:            LONGINT;
  3836.             reserved2:            LONGINT;
  3837.             ioCompletion:        AuthIOCompletionUPP;
  3838.             ioResult:            OSErr;
  3839.             saveA5:                LONGINT;
  3840.             reqCode:            INTEGER;
  3841.             reserved:            ARRAY [0..1] OF LONGINT;
  3842.             serverHint:            AddrBlock;
  3843.             dsRefNum:            INTEGER;
  3844.             callID:                LONGINT;
  3845.             identity:            AuthIdentity;
  3846.             gReserved1:            LONGINT;
  3847.             gReserved2:            LONGINT;
  3848.             gReserved3:            LONGINT;
  3849.             clientData:            LONGINT;
  3850.            );
  3851.         1: (
  3852.             bindIdentityPB:        AuthBindSpecificIdentityPB;
  3853.             );
  3854.         2: (
  3855.             unbindIdentityPB:    AuthUnbindSpecificIdentityPB;
  3856.             );
  3857.         3: (
  3858.             resolveCreationIDPB: AuthResolveCreationIDPB;
  3859.             );
  3860.         4: (
  3861.             getIdentityInfoPB:    AuthGetSpecificIdentityInfoPB;
  3862.             );
  3863.         5: (
  3864.             addKeyPB:            AuthAddKeyPB;
  3865.             );
  3866.         6: (
  3867.             changeKeyPB:        AuthChangeKeyPB;
  3868.             );
  3869.         7: (
  3870.             deleteKeyPB:        AuthDeleteKeyPB;
  3871.             );
  3872.         8: (
  3873.             passwordToKeyPB:    AuthPasswordToKeyPB;
  3874.             );
  3875.         9: (
  3876.             getCredentialsPB:    AuthGetCredentialsPB;
  3877.             );
  3878.         10: (
  3879.             decryptCredentialsPB: AuthDecryptCredentialsPB;
  3880.             );
  3881.         11: (
  3882.             makeChallengePB:    AuthMakeChallengePB;
  3883.             );
  3884.         12: (
  3885.             makeReplyPB:        AuthMakeReplyPB;
  3886.             );
  3887.         13: (
  3888.             verifyReplyPB:        AuthVerifyReplyPB;
  3889.             );
  3890.         14: (
  3891.             getUTCTimePB:        AuthGetUTCTimePB;
  3892.             );
  3893.         15: (
  3894.             makeProxyPB:        AuthMakeProxyPB;
  3895.             );
  3896.         16: (
  3897.             tradeProxyForCredentialsPB: AuthTradeProxyForCredentialsPB;
  3898.             );
  3899.         17: (
  3900.             getLocalIdentityPB:    AuthGetLocalIdentityPB;
  3901.             );
  3902.         18: (
  3903.             unLockLocalIdentityPB: AuthUnlockLocalIdentityPB;
  3904.             );
  3905.         19: (
  3906.             lockLocalIdentityPB: AuthLockLocalIdentityPB;
  3907.             );
  3908.         20: (
  3909.             localIdentityQInstallPB: AuthAddToLocalIdentityQueuePB;
  3910.             );
  3911.         21: (
  3912.             localIdentityQRemovePB: AuthRemoveFromLocalIdentityQueuePB;
  3913.             );
  3914.         22: (
  3915.             setupLocalIdentityPB: AuthSetupLocalIdentityPB;
  3916.             );
  3917.         23: (
  3918.             changeLocalIdentityPB: AuthChangeLocalIdentityPB;
  3919.             );
  3920.         24: (
  3921.             removeLocalIdentityPB: AuthRemoveLocalIdentityPB;
  3922.             );
  3923.         25: (
  3924.             setupDirectoryIdentityPB: OCESetupAddDirectoryInfoPB;
  3925.             );
  3926.         26: (
  3927.             changeDirectoryIdentityPB: OCESetupChangeDirectoryInfoPB;
  3928.             );
  3929.         27: (
  3930.             removeDirectoryIdentityPB: OCESetupRemoveDirectoryInfoPB;
  3931.             );
  3932.         28: (
  3933.             getDirectoryIdentityInfoPB: OCESetupGetDirectoryInfoPB;
  3934.             );
  3935.     END;
  3936.  
  3937.     DirParamBlock = RECORD
  3938.         CASE INTEGER OF
  3939.         0: (
  3940.             qLink:                Ptr;
  3941.             reserved1:            LONGINT;
  3942.             reserved2:            LONGINT;
  3943.             ioCompletion:        DirIOCompletionUPP;
  3944.             ioResult:            OSErr;
  3945.             saveA5:                LONGINT;
  3946.             reqCode:            INTEGER;
  3947.             reserved:            ARRAY [0..1] OF LONGINT;
  3948.             serverHint:            AddrBlock;
  3949.             dsRefNum:            INTEGER;
  3950.             callID:                LONGINT;
  3951.             identity:            AuthIdentity;
  3952.             gReserved1:            LONGINT;
  3953.             gReserved2:            LONGINT;
  3954.             gReserved3:            LONGINT;
  3955.             clientData:            LONGINT;
  3956.            );
  3957.         1: (
  3958.             addRecordPB:        DirAddRecordPB;
  3959.             );
  3960.         2: (
  3961.             deleteRecordPB:        DirDeleteRecordPB;
  3962.             );
  3963.         3: (
  3964.             enumerateGetPB:        DirEnumerateGetPB;
  3965.             );
  3966.         4: (
  3967.             enumerateParsePB:    DirEnumerateParsePB;
  3968.             );
  3969.         5: (
  3970.             findRecordGetPB:    DirFindRecordGetPB;
  3971.             );
  3972.         6: (
  3973.             findRecordParsePB:    DirFindRecordParsePB;
  3974.             );
  3975.         7: (
  3976.             lookupGetPB:        DirLookupGetPB;
  3977.             );
  3978.         8: (
  3979.             lookupParsePB:        DirLookupParsePB;
  3980.             );
  3981.         9: (
  3982.             addAttributeValuePB: DirAddAttributeValuePB;
  3983.             );
  3984.         10: (
  3985.             deleteAttributeTypePB: DirDeleteAttributeTypePB;
  3986.             );
  3987.         11: (
  3988.             deleteAttributeValuePB: DirDeleteAttributeValuePB;
  3989.             );
  3990.         12: (
  3991.             changeAttributeValuePB: DirChangeAttributeValuePB;
  3992.             );
  3993.         13: (
  3994.             verifyAttributeValuePB: DirVerifyAttributeValuePB;
  3995.             );
  3996.         14: (
  3997.             findValuePB:        DirFindValuePB;
  3998.             );
  3999.         15: (
  4000.             enumeratePseudonymGetPB: DirEnumeratePseudonymGetPB;
  4001.             );
  4002.         16: (
  4003.             enumeratePseudonymParsePB: DirEnumeratePseudonymParsePB;
  4004.             );
  4005.         17: (
  4006.             addPseudonymPB:        DirAddPseudonymPB;
  4007.             );
  4008.         18: (
  4009.             deletePseudonymPB:    DirDeletePseudonymPB;
  4010.             );
  4011.         19: (
  4012.             addAliasPB:            DirAddAliasPB;
  4013.             );
  4014.         20: (
  4015.             enumerateAttributeTypesGetPB: DirEnumerateAttributeTypesGetPB;
  4016.             );
  4017.         21: (
  4018.             enumerateAttributeTypesParsePB: DirEnumerateAttributeTypesParsePB;
  4019.             );
  4020.         22: (
  4021.             getNameAndTypePB:    DirGetNameAndTypePB;
  4022.             );
  4023.         23: (
  4024.             setNameAndTypePB:    DirSetNameAndTypePB;
  4025.             );
  4026.         24: (
  4027.             getRecordMetaInfoPB: DirGetRecordMetaInfoPB;
  4028.             );
  4029.         25: (
  4030.             getDNodeMetaInfoPB:    DirGetDNodeMetaInfoPB;
  4031.             );
  4032.         26: (
  4033.             getDirectoryInfoPB:    DirGetDirectoryInfoPB;
  4034.             );
  4035.         27: (
  4036.             getDNodeAccessControlGetPB: DirGetDNodeAccessControlGetPB;
  4037.             );
  4038.         28: (
  4039.             getDNodeAccessControlParsePB: DirGetDNodeAccessControlParsePB;
  4040.             );
  4041.         29: (
  4042.             getRecordAccessControlGetPB: DirGetRecordAccessControlGetPB;
  4043.             );
  4044.         30: (
  4045.             getRecordAccessControlParsePB: DirGetRecordAccessControlParsePB;
  4046.             );
  4047.         31: (
  4048.             getAttributeAccessControlGetPB: DirGetAttributeAccessControlGetPB;
  4049.             );
  4050.         32: (
  4051.             getAttributeAccessControlParsePB: DirGetAttributeAccessControlParsePB;
  4052.             );
  4053.         33: (
  4054.             enumerateDirectoriesGetPB: DirEnumerateDirectoriesGetPB;
  4055.             );
  4056.         34: (
  4057.             enumerateDirectoriesParsePB: DirEnumerateDirectoriesParsePB;
  4058.             );
  4059.         35: (
  4060.             addADAPDirectoryPB:    DirAddADAPDirectoryPB;
  4061.             );
  4062.         36: (
  4063.             removeDirectoryPB:    DirRemoveDirectoryPB;
  4064.             );
  4065.         37: (
  4066.             netSearchADAPDirectoriesGetPB: DirNetSearchADAPDirectoriesGetPB;
  4067.             );
  4068.         38: (
  4069.             netSearchADAPDirectoriesParsePB: DirNetSearchADAPDirectoriesParsePB;
  4070.             );
  4071.         39: (
  4072.             findADAPDirectoryByNetSearchPB: DirFindADAPDirectoryByNetSearchPB;
  4073.             );
  4074.         40: (
  4075.             mapDNodeNumberToPathNamePB: DirMapDNodeNumberToPathNamePB;
  4076.             );
  4077.         41: (
  4078.             mapPathNameToDNodeNumberPB: DirMapPathNameToDNodeNumberPB;
  4079.             );
  4080.         42: (
  4081.             getLocalNetworkSpecPB: DirGetLocalNetworkSpecPB;
  4082.             );
  4083.         43: (
  4084.             getDNodeInfoPB:        DirGetDNodeInfoPB;
  4085.             );
  4086.         44: (
  4087.             createPersonalDirectoryPB: DirCreatePersonalDirectoryPB;
  4088.             );
  4089.         45: (
  4090.             openPersonalDirectoryPB: DirOpenPersonalDirectoryPB;
  4091.             );
  4092.         46: (
  4093.             closePersonalDirectoryPB: DirClosePersonalDirectoryPB;
  4094.             );
  4095.         47: (
  4096.             makePersonalDirectoryRLIPB: DirMakePersonalDirectoryRLIPB;
  4097.             );
  4098.         48: (
  4099.             addDSAMPB:            DirAddDSAMPB;
  4100.             );
  4101.         49: (
  4102.             instantiateDSAMPB:    DirInstantiateDSAMPB;
  4103.             );
  4104.         50: (
  4105.             removeDSAMPB:        DirRemoveDSAMPB;
  4106.             );
  4107.         51: (
  4108.             addDSAMDirectoryPB:    DirAddDSAMDirectoryPB;
  4109.             );
  4110.         52: (
  4111.             getExtendedDirectoriesInfoPB: DirGetExtendedDirectoriesInfoPB;
  4112.             );
  4113.         53: (
  4114.             getDirectoryIconPB:    DirGetDirectoryIconPB;
  4115.             );
  4116.         54: (
  4117.             dirGetOCESetupRefNumPB: DirGetOCESetupRefNumPB;
  4118.             );
  4119.         55: (
  4120.             abortPB:            DirAbortPB;
  4121.             );
  4122.     END;
  4123.  
  4124.  
  4125. CONST
  4126.     uppAuthIOCompletionProcInfo = $00009802;
  4127.     uppNotificationProcInfo = $00003FD0;
  4128.     uppDirIOCompletionProcInfo = $00009802;
  4129.     uppForEachDirEnumSpecProcInfo = $000003D0;
  4130.     uppForEachRecordProcInfo = $00000FD0;
  4131.     uppForEachLookupRecordIDProcInfo = $000003D0;
  4132.     uppForEachAttrTypeLookupProcInfo = $00000FD0;
  4133.     uppForEachAttrValueProcInfo = $000003D0;
  4134.     uppForEachAttrTypeProcInfo = $000003D0;
  4135.     uppForEachRecordIDProcInfo = $000003D0;
  4136.     uppForEachDirectoryProcInfo = $00003FD0;
  4137.     uppForEachADAPDirectoryProcInfo = $0000FFD0;
  4138.     uppForEachDNodeAccessControlProcInfo = $0000FFD0;
  4139.     uppForEachRecordAccessControlProcInfo = $0000FFD0;
  4140.     uppForEachAttributeAccessControlProcInfo = $0000FFD0;
  4141.     uppDSAMDirProcInfo = $000007E0;
  4142.     uppDSAMDirParseProcInfo = $000007E0;
  4143.     uppDSAMAuthProcInfo = $000007E0;
  4144.  
  4145. PROCEDURE CallAuthIOCompletionProc(paramBlock: AuthParamBlockPtr; userRoutine: AuthIOCompletionUPP);
  4146.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4147.     {To be implemented:  Glue to move parameters into registers.}
  4148.     {$ENDC}
  4149.  
  4150. FUNCTION CallNotificationProc(clientData: LONGINT; callValue: AuthLocalIdentityOp; actionValue: AuthLocalIdentityLockAction; identity: LocalIdentity; userRoutine: NotificationUPP): BOOLEAN;
  4151.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4152.     INLINE $205F, $4E90;
  4153.     {$ENDC}
  4154.  
  4155. PROCEDURE CallDirIOCompletionProc(paramBlock: DirParamBlockPtr; userRoutine: DirIOCompletionUPP);
  4156.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4157.     {To be implemented:  Glue to move parameters into registers.}
  4158.     {$ENDC}
  4159.  
  4160. FUNCTION CallForEachDirEnumSpecProc(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; userRoutine: ForEachDirEnumSpecUPP): BOOLEAN;
  4161.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4162.     INLINE $205F, $4E90;
  4163.     {$ENDC}
  4164.  
  4165. FUNCTION CallForEachRecordProc(clientData: LONGINT; {CONST}VAR enumSpec: DirEnumSpec; pRLI: PackedRLIPtr; userRoutine: ForEachRecordUPP): BOOLEAN;
  4166.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4167.     INLINE $205F, $4E90;
  4168.     {$ENDC}
  4169.  
  4170. FUNCTION CallForEachLookupRecordIDProc(clientData: LONGINT; {CONST}VAR recordID: RecordID; userRoutine: ForEachLookupRecordIDUPP): BOOLEAN;
  4171.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4172.     INLINE $205F, $4E90;
  4173.     {$ENDC}
  4174.  
  4175. FUNCTION CallForEachAttrTypeLookupProc(clientData: LONGINT; {CONST}VAR attrType: AttributeType; myAttrAccMask: AccessMask; userRoutine: ForEachAttrTypeLookupUPP): BOOLEAN;
  4176.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4177.     INLINE $205F, $4E90;
  4178.     {$ENDC}
  4179.  
  4180. FUNCTION CallForEachAttrValueProc(clientData: LONGINT; {CONST}VAR attribute: Attribute; userRoutine: ForEachAttrValueUPP): BOOLEAN;
  4181.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4182.     INLINE $205F, $4E90;
  4183.     {$ENDC}
  4184.  
  4185. FUNCTION CallForEachAttrTypeProc(clientData: LONGINT; {CONST}VAR attrType: AttributeType; userRoutine: ForEachAttrTypeUPP): BOOLEAN;
  4186.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4187.     INLINE $205F, $4E90;
  4188.     {$ENDC}
  4189.  
  4190. FUNCTION CallForEachRecordIDProc(clientData: LONGINT; {CONST}VAR recordID: RecordID; userRoutine: ForEachRecordIDUPP): BOOLEAN;
  4191.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4192.     INLINE $205F, $4E90;
  4193.     {$ENDC}
  4194.  
  4195. FUNCTION CallForEachDirectoryProc(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; userRoutine: ForEachDirectoryUPP): BOOLEAN;
  4196.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4197.     INLINE $205F, $4E90;
  4198.     {$ENDC}
  4199.  
  4200. FUNCTION CallForEachADAPDirectoryProc(clientData: LONGINT; {CONST}VAR dirName: DirectoryName; {CONST}VAR discriminator: DirDiscriminator; features: DirGestalt; serverHint: AddrBlock; userRoutine: ForEachADAPDirectoryUPP): BOOLEAN;
  4201.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4202.     INLINE $205F, $4E90;
  4203.     {$ENDC}
  4204.  
  4205. FUNCTION CallForEachDNodeAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; defaultRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask; userRoutine: ForEachDNodeAccessControlUPP): BOOLEAN;
  4206.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4207.     INLINE $205F, $4E90;
  4208.     {$ENDC}
  4209.  
  4210. FUNCTION CallForEachRecordAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; defaultAttributeAccMask: AccessMask; userRoutine: ForEachRecordAccessControlUPP): BOOLEAN;
  4211.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4212.     INLINE $205F, $4E90;
  4213.     {$ENDC}
  4214.  
  4215. FUNCTION CallForEachAttributeAccessControlProc(clientData: LONGINT; {CONST}VAR dsObj: DSSpec; activeDnodeAccMask: AccessMask; activeRecordAccMask: AccessMask; activeAttributeAccMask: AccessMask; userRoutine: ForEachAttributeAccessControlUPP): BOOLEAN;
  4216.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4217.     INLINE $205F, $4E90;
  4218.     {$ENDC}
  4219.  
  4220. FUNCTION CallDSAMDirProc(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN; userRoutine: DSAMDirUPP): OSErr;
  4221.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4222.     INLINE $205F, $4E90;
  4223.     {$ENDC}
  4224.  
  4225. FUNCTION CallDSAMDirParseProc(dsamData: UNIV Ptr; paramBlock: DirParamBlockPtr; async: BOOLEAN; userRoutine: DSAMDirParseUPP): OSErr;
  4226.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4227.     INLINE $205F, $4E90;
  4228.     {$ENDC}
  4229.  
  4230. FUNCTION CallDSAMAuthProc(dsamData: UNIV Ptr; pb: AuthParamBlockPtr; async: BOOLEAN; userRoutine: DSAMAuthUPP): OSErr;
  4231.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4232.     INLINE $205F, $4E90;
  4233.     {$ENDC}
  4234.  
  4235. FUNCTION NewAuthIOCompletionProc(userRoutine: AuthIOCompletionProcPtr): AuthIOCompletionUPP;
  4236.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4237.     INLINE $2E9F;
  4238.     {$ENDC}
  4239.  
  4240. FUNCTION NewNotificationProc(userRoutine: NotificationProcPtr): NotificationUPP;
  4241.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4242.     INLINE $2E9F;
  4243.     {$ENDC}
  4244.  
  4245. FUNCTION NewDirIOCompletionProc(userRoutine: DirIOCompletionProcPtr): DirIOCompletionUPP;
  4246.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4247.     INLINE $2E9F;
  4248.     {$ENDC}
  4249.  
  4250. FUNCTION NewForEachDirEnumSpecProc(userRoutine: ForEachDirEnumSpecProcPtr): ForEachDirEnumSpecUPP;
  4251.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4252.     INLINE $2E9F;
  4253.     {$ENDC}
  4254.  
  4255. FUNCTION NewForEachRecordProc(userRoutine: ForEachRecordProcPtr): ForEachRecordUPP;
  4256.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4257.     INLINE $2E9F;
  4258.     {$ENDC}
  4259.  
  4260. FUNCTION NewForEachLookupRecordIDProc(userRoutine: ForEachLookupRecordIDProcPtr): ForEachLookupRecordIDUPP;
  4261.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4262.     INLINE $2E9F;
  4263.     {$ENDC}
  4264.  
  4265. FUNCTION NewForEachAttrTypeLookupProc(userRoutine: ForEachAttrTypeLookupProcPtr): ForEachAttrTypeLookupUPP;
  4266.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4267.     INLINE $2E9F;
  4268.     {$ENDC}
  4269.  
  4270. FUNCTION NewForEachAttrValueProc(userRoutine: ForEachAttrValueProcPtr): ForEachAttrValueUPP;
  4271.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4272.     INLINE $2E9F;
  4273.     {$ENDC}
  4274.  
  4275. FUNCTION NewForEachAttrTypeProc(userRoutine: ForEachAttrTypeProcPtr): ForEachAttrTypeUPP;
  4276.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4277.     INLINE $2E9F;
  4278.     {$ENDC}
  4279.  
  4280. FUNCTION NewForEachRecordIDProc(userRoutine: ForEachRecordIDProcPtr): ForEachRecordIDUPP;
  4281.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4282.     INLINE $2E9F;
  4283.     {$ENDC}
  4284.  
  4285. FUNCTION NewForEachDirectoryProc(userRoutine: ForEachDirectoryProcPtr): ForEachDirectoryUPP;
  4286.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4287.     INLINE $2E9F;
  4288.     {$ENDC}
  4289.  
  4290. FUNCTION NewForEachADAPDirectoryProc(userRoutine: ForEachADAPDirectoryProcPtr): ForEachADAPDirectoryUPP;
  4291.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4292.     INLINE $2E9F;
  4293.     {$ENDC}
  4294.  
  4295. FUNCTION NewForEachDNodeAccessControlProc(userRoutine: ForEachDNodeAccessControlProcPtr): ForEachDNodeAccessControlUPP;
  4296.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4297.     INLINE $2E9F;
  4298.     {$ENDC}
  4299.  
  4300. FUNCTION NewForEachRecordAccessControlProc(userRoutine: ForEachRecordAccessControlProcPtr): ForEachRecordAccessControlUPP;
  4301.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4302.     INLINE $2E9F;
  4303.     {$ENDC}
  4304.  
  4305. FUNCTION NewForEachAttributeAccessControlProc(userRoutine: ForEachAttributeAccessControlProcPtr): ForEachAttributeAccessControlUPP;
  4306.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4307.     INLINE $2E9F;
  4308.     {$ENDC}
  4309.  
  4310. FUNCTION NewDSAMDirProc(userRoutine: DSAMDirProcPtr): DSAMDirUPP;
  4311.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4312.     INLINE $2E9F;
  4313.     {$ENDC}
  4314.  
  4315. FUNCTION NewDSAMDirParseProc(userRoutine: DSAMDirParseProcPtr): DSAMDirParseUPP;
  4316.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4317.     INLINE $2E9F;
  4318.     {$ENDC}
  4319.  
  4320. FUNCTION NewDSAMAuthProc(userRoutine: DSAMAuthProcPtr): DSAMAuthUPP;
  4321.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4322.     INLINE $2E9F;
  4323.     {$ENDC}
  4324. FUNCTION AuthBindSpecificIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4325.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4326.     INLINE $3F3C, $0200, $AA5E;
  4327.     {$ENDC}
  4328. FUNCTION AuthUnbindSpecificIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4329.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4330.     INLINE $3F3C, $0201, $AA5E;
  4331.     {$ENDC}
  4332. FUNCTION AuthResolveCreationID(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4333.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4334.     INLINE $3F3C, $0202, $AA5E;
  4335.     {$ENDC}
  4336. FUNCTION AuthGetSpecificIdentityInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4337.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4338.     INLINE $3F3C, $0203, $AA5E;
  4339.     {$ENDC}
  4340. FUNCTION AuthAddKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4341.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4342.     INLINE $3F3C, $0207, $AA5E;
  4343.     {$ENDC}
  4344. FUNCTION AuthChangeKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4345.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4346.     INLINE $3F3C, $0208, $AA5E;
  4347.     {$ENDC}
  4348. FUNCTION AuthDeleteKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4349.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4350.     INLINE $3F3C, $0209, $AA5E;
  4351.     {$ENDC}
  4352. FUNCTION AuthPasswordToKey(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4353.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4354.     INLINE $3F3C, $020A, $AA5E;
  4355.     {$ENDC}
  4356. FUNCTION AuthGetCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4357.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4358.     INLINE $3F3C, $020B, $AA5E;
  4359.     {$ENDC}
  4360. FUNCTION AuthDecryptCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4361.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4362.     INLINE $3F3C, $020C, $AA5E;
  4363.     {$ENDC}
  4364. FUNCTION AuthMakeChallenge(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4365.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4366.     INLINE $3F3C, $020F, $AA5E;
  4367.     {$ENDC}
  4368. FUNCTION AuthMakeReply(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4369.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4370.     INLINE $3F3C, $0210, $AA5E;
  4371.     {$ENDC}
  4372. FUNCTION AuthVerifyReply(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4373.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4374.     INLINE $3F3C, $0211, $AA5E;
  4375.     {$ENDC}
  4376. FUNCTION AuthGetUTCTime(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4377.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4378.     INLINE $3F3C, $021A, $AA5E;
  4379.     {$ENDC}
  4380. FUNCTION AuthMakeProxy(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4381.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4382.     INLINE $3F3C, $0212, $AA5E;
  4383.     {$ENDC}
  4384. FUNCTION AuthTradeProxyForCredentials(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4385.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4386.     INLINE $3F3C, $0213, $AA5E;
  4387.     {$ENDC}
  4388. { Local Identity API }
  4389. FUNCTION AuthGetLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4390.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4391.     INLINE $3F3C, $0204, $AA5E;
  4392.     {$ENDC}
  4393. FUNCTION AuthUnlockLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4394.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4395.     INLINE $3F3C, $0214, $AA5E;
  4396.     {$ENDC}
  4397. FUNCTION AuthLockLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4398.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4399.     INLINE $3F3C, $0215, $AA5E;
  4400.     {$ENDC}
  4401. FUNCTION AuthAddToLocalIdentityQueue(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4402.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4403.     INLINE $3F3C, $0205, $AA5E;
  4404.     {$ENDC}
  4405. FUNCTION AuthRemoveFromLocalIdentityQueue(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4406.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4407.     INLINE $3F3C, $0206, $AA5E;
  4408.     {$ENDC}
  4409. FUNCTION AuthSetupLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4410.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4411.     INLINE $3F3C, $0216, $AA5E;
  4412.     {$ENDC}
  4413. FUNCTION AuthChangeLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4414.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4415.     INLINE $3F3C, $0217, $AA5E;
  4416.     {$ENDC}
  4417. FUNCTION AuthRemoveLocalIdentity(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4418.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4419.     INLINE $3F3C, $0218, $AA5E;
  4420.     {$ENDC}
  4421. FUNCTION DirAddRecord(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4422.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4423.     INLINE $3F3C, $0109, $AA5E;
  4424.     {$ENDC}
  4425. FUNCTION DirDeleteRecord(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4426.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4427.     INLINE $3F3C, $010A, $AA5E;
  4428.     {$ENDC}
  4429. FUNCTION DirEnumerateGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4430.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4431.     INLINE $3F3C, $0111, $AA5E;
  4432.     {$ENDC}
  4433. FUNCTION DirEnumerateParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4434.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4435.     INLINE $3F3C, $0101, $AA5E;
  4436.     {$ENDC}
  4437. FUNCTION DirFindRecordGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4438.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4439.     INLINE $3F3C, $0140, $AA5E;
  4440.     {$ENDC}
  4441. FUNCTION DirFindRecordParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4442.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4443.     INLINE $3F3C, $0141, $AA5E;
  4444.     {$ENDC}
  4445. FUNCTION DirLookupGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4446.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4447.     INLINE $3F3C, $0117, $AA5E;
  4448.     {$ENDC}
  4449. FUNCTION DirLookupParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4450.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4451.     INLINE $3F3C, $0102, $AA5E;
  4452.     {$ENDC}
  4453. FUNCTION DirAddAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4454.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4455.     INLINE $3F3C, $010B, $AA5E;
  4456.     {$ENDC}
  4457. FUNCTION DirDeleteAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4458.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4459.     INLINE $3F3C, $010C, $AA5E;
  4460.     {$ENDC}
  4461. FUNCTION DirDeleteAttributeType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4462.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4463.     INLINE $3F3C, $0130, $AA5E;
  4464.     {$ENDC}
  4465. FUNCTION DirChangeAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4466.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4467.     INLINE $3F3C, $010D, $AA5E;
  4468.     {$ENDC}
  4469. FUNCTION DirVerifyAttributeValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4470.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4471.     INLINE $3F3C, $010E, $AA5E;
  4472.     {$ENDC}
  4473. FUNCTION DirFindValue(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4474.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4475.     INLINE $3F3C, $0126, $AA5E;
  4476.     {$ENDC}
  4477. FUNCTION DirEnumerateAttributeTypesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4478.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4479.     INLINE $3F3C, $0112, $AA5E;
  4480.     {$ENDC}
  4481. FUNCTION DirEnumerateAttributeTypesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4482.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4483.     INLINE $3F3C, $0103, $AA5E;
  4484.     {$ENDC}
  4485. FUNCTION DirAddPseudonym(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4486.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4487.     INLINE $3F3C, $010F, $AA5E;
  4488.     {$ENDC}
  4489. FUNCTION DirDeletePseudonym(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4490.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4491.     INLINE $3F3C, $0110, $AA5E;
  4492.     {$ENDC}
  4493. FUNCTION DirAddAlias(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4494.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4495.     INLINE $3F3C, $011C, $AA5E;
  4496.     {$ENDC}
  4497. FUNCTION DirEnumeratePseudonymGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4498.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4499.     INLINE $3F3C, $0113, $AA5E;
  4500.     {$ENDC}
  4501. FUNCTION DirEnumeratePseudonymParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4502.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4503.     INLINE $3F3C, $0104, $AA5E;
  4504.     {$ENDC}
  4505. FUNCTION DirGetNameAndType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4506.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4507.     INLINE $3F3C, $0114, $AA5E;
  4508.     {$ENDC}
  4509. FUNCTION DirSetNameAndType(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4510.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4511.     INLINE $3F3C, $0115, $AA5E;
  4512.     {$ENDC}
  4513. FUNCTION DirGetRecordMetaInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4514.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4515.     INLINE $3F3C, $0116, $AA5E;
  4516.     {$ENDC}
  4517. FUNCTION DirGetDNodeMetaInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4518.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4519.     INLINE $3F3C, $0118, $AA5E;
  4520.     {$ENDC}
  4521. FUNCTION DirGetDirectoryInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4522.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4523.     INLINE $3F3C, $0119, $AA5E;
  4524.     {$ENDC}
  4525. FUNCTION DirGetDNodeAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4526.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4527.     INLINE $3F3C, $012A, $AA5E;
  4528.     {$ENDC}
  4529. FUNCTION DirGetDNodeAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4530.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4531.     INLINE $3F3C, $012F, $AA5E;
  4532.     {$ENDC}
  4533. FUNCTION DirGetRecordAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4534.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4535.     INLINE $3F3C, $012C, $AA5E;
  4536.     {$ENDC}
  4537. FUNCTION DirGetRecordAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4538.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4539.     INLINE $3F3C, $0134, $AA5E;
  4540.     {$ENDC}
  4541. FUNCTION DirGetAttributeAccessControlGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4542.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4543.     INLINE $3F3C, $012E, $AA5E;
  4544.     {$ENDC}
  4545. FUNCTION DirGetAttributeAccessControlParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4546.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4547.     INLINE $3F3C, $0138, $AA5E;
  4548.     {$ENDC}
  4549. FUNCTION DirEnumerateDirectoriesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4550.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4551.     INLINE $3F3C, $011A, $AA5E;
  4552.     {$ENDC}
  4553. FUNCTION DirEnumerateDirectoriesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4554.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4555.     INLINE $3F3C, $0106, $AA5E;
  4556.     {$ENDC}
  4557. FUNCTION DirMapPathNameToDNodeNumber(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4558.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4559.     INLINE $3F3C, $0122, $AA5E;
  4560.     {$ENDC}
  4561. FUNCTION DirMapDNodeNumberToPathName(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4562.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4563.     INLINE $3F3C, $0123, $AA5E;
  4564.     {$ENDC}
  4565.  
  4566. FUNCTION DirGetLocalNetworkSpec(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4567.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4568.     INLINE $3F3C, $0124, $AA5E;
  4569.     {$ENDC}
  4570. FUNCTION DirGetDNodeInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4571.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4572.     INLINE $3F3C, $0125, $AA5E;
  4573.     {$ENDC}
  4574.  
  4575. {  Trap Dispatchers for Personal Catalog and CSAM Extensions }
  4576. FUNCTION DirCreatePersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4577.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4578.     INLINE $7000, $1F00, $3F3C, $011F, $AA5E;
  4579.     {$ENDC}
  4580. FUNCTION DirOpenPersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4581.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4582.     INLINE $7000, $1F00, $3F3C, $011E, $AA5E;
  4583.     {$ENDC}
  4584. FUNCTION DirClosePersonalDirectory(paramBlock: DirParamBlockPtr): OSErr;
  4585.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4586.     INLINE $7000, $1F00, $3F3C, $0131, $AA5E;
  4587.     {$ENDC}
  4588. FUNCTION DirMakePersonalDirectoryRLI(paramBlock: DirParamBlockPtr): OSErr;
  4589.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4590.     INLINE $7000, $1F00, $3F3C, $0132, $AA5E;
  4591.     {$ENDC}
  4592. FUNCTION DirAddDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4593.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4594.     INLINE $7000, $1F00, $3F3C, $011D, $AA5E;
  4595.     {$ENDC}
  4596. FUNCTION DirInstantiateDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4597.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4598.     INLINE $7000, $1F00, $3F3C, $0127, $AA5E;
  4599.     {$ENDC}
  4600.  
  4601. FUNCTION DirRemoveDSAM(paramBlock: DirParamBlockPtr): OSErr;
  4602.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4603.     INLINE $7000, $1F00, $3F3C, $0120, $AA5E;
  4604.     {$ENDC}
  4605. FUNCTION DirAddDSAMDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4606.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4607.     INLINE $3F3C, $0133, $AA5E;
  4608.     {$ENDC}
  4609. FUNCTION DirGetExtendedDirectoriesInfo(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4610.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4611.     INLINE $3F3C, $0136, $AA5E;
  4612.     {$ENDC}
  4613. FUNCTION DirGetDirectoryIcon(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4614.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4615.     INLINE $3F3C, $0121, $AA5E;
  4616.     {$ENDC}
  4617.  
  4618. FUNCTION DirAddADAPDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4619.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4620.     INLINE $3F3C, $0137, $AA5E;
  4621.     {$ENDC}
  4622. FUNCTION DirRemoveDirectory(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4623.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4624.     INLINE $3F3C, $0135, $AA5E;
  4625.     {$ENDC}
  4626. FUNCTION DirNetSearchADAPDirectoriesGet(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4627.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4628.     INLINE $3F3C, $0108, $AA5E;
  4629.     {$ENDC}
  4630. FUNCTION DirNetSearchADAPDirectoriesParse(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4631.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4632.     INLINE $3F3C, $0105, $AA5E;
  4633.     {$ENDC}
  4634. FUNCTION DirFindADAPDirectoryByNetSearch(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4635.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4636.     INLINE $3F3C, $0107, $AA5E;
  4637.     {$ENDC}
  4638. FUNCTION DirGetOCESetupRefNum(paramBlock: DirParamBlockPtr; async: BOOLEAN): OSErr;
  4639.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4640.     INLINE $3F3C, $0128, $AA5E;
  4641.     {$ENDC}
  4642. FUNCTION DirAbort(paramBlock: DirParamBlockPtr): OSErr;
  4643.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4644.     INLINE $7000, $1F00, $3F3C, $011B, $AA5E;
  4645.     {$ENDC}
  4646. FUNCTION OCESetupAddDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4647.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4648.     INLINE $3F3C, $0219, $AA5E;
  4649.     {$ENDC}
  4650. FUNCTION OCESetupChangeDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4651.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4652.     INLINE $3F3C, $021B, $AA5E;
  4653.     {$ENDC}
  4654. FUNCTION OCESetupRemoveDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4655.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4656.     INLINE $3F3C, $020D, $AA5E;
  4657.     {$ENDC}
  4658. FUNCTION OCESetupGetDirectoryInfo(paramBlock: AuthParamBlockPtr; async: BOOLEAN): OSErr;
  4659.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  4660.     INLINE $3F3C, $020E, $AA5E;
  4661.     {$ENDC}
  4662. {$ALIGN RESET}
  4663. {$POP}
  4664.  
  4665. {$SETC UsingIncludes := OCEAuthDirIncludes}
  4666.  
  4667. {$ENDC} {__OCEAUTHDIR__}
  4668.  
  4669. {$IFC NOT UsingIncludes}
  4670.  END.
  4671. {$ENDC}
  4672.